public static void validateFlags(final Set<NodeFlag> flags) {
        if (NullSafe.hasItems(flags)) {
            for (final NodeFlag flag : flags) {
                final Set<NodeFlag> incompatibleFlags = INCOMPATIBLE_FLAGS.get(flag);
                if (NullSafe.hasItems(incompatibleFlags)) {
                    for (final NodeFlag incompatibleFlag : incompatibleFlags) {
                        if (flags.contains(incompatibleFlag)) {
                            throw new RuntimeException(flag + " is incompatible with "
                                    + incompatibleFlag + " in " + flags);
                        }
                    }
                }
            }
        }
    }
Validate a set of flags to make sure it does not contain any that are incompatible
stroom-core-shared/src/main/java/stroom/explorer/shared/NodeFlag.java