private void appendDocRef(final StringBuilder sb, final DocRef docRef) {
        if (docRef != null) {
            if (docRef.getName() != null && docRef.getName().trim().length() > 0) {
                sb.append(docRef.getName());
            } else if (docRef.getUuid() != null && docRef.getUuid().trim().length() > 0) {
                sb.append(docRef.getUuid());
            }
        }
    }
@return True if this term has one of the supplied conditions
stroom-query/stroom-query-api/src/main/java/stroom/query/api/ExpressionTerm.java