public static boolean isSameDocument(final Doc doc, final DocRef docRef) {
        return isSameDocument(docRef, doc);
    }
Return true if the docRef and doc have the same UUID and type.
If either is null, returns false.
stroom-core-shared/src/main/java/stroom/docstore/shared/DocRefUtil.java