public static WordItem sourcedWord(final String word, final WordList wordList) {
            if (NullSafe.isNonBlankString(word)) {
                return wordList.getWord(word)
                        .map(wordObj -> {
                            final DocRef sourceDocRef = wordList.getSource(wordObj).orElse(null);
                            return new WordItem(word, sourceDocRef);
                        })
                        .orElse(EMPTY);
            } else {
                return EMPTY;
            }
        }
For non dictionary based lists

@param word
stroom-core-client/src/main/java/stroom/dashboard/client/input/ListInputPresenter.java