public static boolean isFolder(final DocRef docRef) {
        return docRef != null && (FOLDER_TYPE.equals(docRef.getType())
                                  || GitRepoDoc.TYPE.equals(docRef.getType()));
    }
Tests whether a {@link DocRef} is a folder
stroom-core-shared/src/main/java/stroom/explorer/shared/ExplorerConstants.java