LOGGER.debug("publishing vertex %s(%s)", vertex.getId(), vertex.getVisibility().toString());
Visibility originalVertexVisibility = vertex.getVisibility();
Property visibilityJsonProperty = LumifyProperties.VISIBILITY_JSON.getProperty(vertex);
VisibilityJson visibilityJson = LumifyProperties.VISIBILITY_JSON.getPropertyValue(vertex);
if (!visibilityJson.getWorkspaces().contains(workspaceId)) {
throw new LumifyException(String.format("vertex with id '%s' is not local to workspace '%s'", vertex.getId(), workspaceId));
}
visibilityJson = GraphUtil.updateVisibilityJsonRemoveFromAllWorkspace(visibilityJson);
LumifyVisibility lumifyVisibility = visibilityTranslator.toVisibility(visibilityJson);