private Condition isInDictionary(final DocRef docRef) {
        final String[] lines = loadWords(docRef);
        if (lines != null) {
            final List<T> values = converter.apply(List.of(lines));
            LOGGER.debug(() -> LogUtil.message("Converted {} lines into {} values",
                    lines.length, values.size()));
            return field.in(values);
        }
        return field.in(Collections.emptyList());
    }
Get an identifier for the passed docRef. term is only used for logging.
docRef may be the same as term.getDocRef() or a descendant of it, as in 'in folder'.

@return The name of the doc or its uuid depending on how the {@link TermHandler} is
configured.
stroom-db-util/src/main/java/stroom/db/util/TermHandler.java