throw new ApiException("Unknown visibility flag " + flag);
}
}
public static Visibility createVisibility(NodeState nodeState) {
Status flag = createFlag(nodeState.getVisibility());
if (flag == Status.PUBLICATION) {
long start = nodeState.getStartPublicationTime();
long end = nodeState.getEndPublicationTime();