if (vertex == null) {
respondWithNotFound(response, String.format("vertex %s not found", graphVertexId));
return;
}
ClientApiDetectedObjects detectedObjects = new ClientApiDetectedObjects();
Iterable<Property> detectedObjectProperties = vertex.getProperties(propertyName);
if (detectedObjectProperties == null || IterableUtils.count(detectedObjectProperties) == 0) {
respondWithNotFound(response, String.format("property %s not found on vertex %s", propertyName, vertex.getId()));
return;
}
detectedObjects.addDetectedObjects(ClientApiConverter.toClientApiProperties(detectedObjectProperties, workspaceId));
respondWithClientApiObject(response, detectedObjects);
}