} else if (vertices.size() == 0) {
sqlWorkspaceVertex = new SqlWorkspaceVertex();
sqlWorkspaceVertex.setVertexId(update.getVertexId());
sqlWorkspaceVertex.setWorkspace((SqlWorkspace) workspace);
((SqlWorkspace) workspace).getSqlWorkspaceVertices().add(sqlWorkspaceVertex);
session.update(workspace);
} else {
sqlWorkspaceVertex = (SqlWorkspaceVertex) vertices.get(0);
}
sqlWorkspaceVertex.setVisible(update.getVisible());
if (update.getGraphPosition() != null) {