@JsonCreator
    static NodeFlag fromShortForm(final String shortForm) {
        if (shortForm == null) {
            return null;
        } else {
            final NodeFlag nodeFlag = SHORT_FORM_TO_NODE_FLAG_MAP.get(shortForm);
            if (nodeFlag == null) {
                throw new RuntimeException("Unknown shortForm '" + shortForm + "'");
            }
            return nodeFlag;
        }
    }
This is the form used for json serialisation. A happy medium between using numbers which are a pain
when debugging vs the enum names which take up a lot of space.
stroom-core-shared/src/main/java/stroom/explorer/shared/NodeFlag.java