}
private Map<Vertex, WorkspaceEntity> createVertexWorkspaceEntityMap(Iterable<Vertex> vertices, List<WorkspaceEntity> workspaceEntities) {
Map<Vertex, WorkspaceEntity> map = new HashMap<Vertex, WorkspaceEntity>();
for (Vertex vertex : vertices) {
WorkspaceEntity correspondingWorkspaceEntity = null;
for (WorkspaceEntity workspaceEntity : workspaceEntities) {
if (workspaceEntity.getEntityVertexId().equals(vertex.getId())) {
correspondingWorkspaceEntity = workspaceEntity;
break;
}