private DocRef decorateDocRef(final DocRefDecorator docRefDecorator,
                                  final DocRef docRef) {
        if (docRef == null) {
            return null;
        } else if (docRefDecorator == null) {
            return docRef;
        } else {
            try {
                return docRefDecorator.decorate(docRef, true);
            } catch (Exception e) {
                // Likely docRef doesn't exist, so we will just leave it as is, i.e.
                // a broken dep
                LOGGER.debug(() -> LogUtil.message("Unable to decorate docRef {}: {}",
                        docRef, LogUtil.exceptionMessage(e)), e);
                return docRef;
            }
        }
    }
//     * Ensure all the imports have the correct names. Modifies the import list.
//
stroom-dictionary/stroom-dictionary-impl/src/main/java/stroom/dictionary/impl/DictionaryStoreImpl.java