public Builder setNodeFlag(final NodeFlag nodeFlag, final boolean isPresent) {
            if (nodeFlag != null) {
                if (this.nodeFlags == null) {
                    this.nodeFlags = EnumSet.noneOf(NodeFlag.class);
                }
                if (isPresent) {
                    NodeFlag.validateFlag(nodeFlag, this.nodeFlags);
                    this.nodeFlags.add(nodeFlag);
                } else {
                    this.nodeFlags.remove(nodeFlag);
                }
            }
            return this;
        }
Sets the presence of nodeFlag in this node's set of {@link NodeFlag}s based on the
value of isPresent.
stroom-core-shared/src/main/java/stroom/explorer/shared/ExplorerNode.java