}
long retrievalStartTime = System.nanoTime();
List<ClientApiVertex> verticesList = new ArrayList<ClientApiVertex>();
for (Vertex vertex : searchResults) {
ClientApiVertex v = ClientApiConverter.toClientApiVertex(vertex, workspaceId, authorizations);
if (scores != null) {
v.setScore(scores.get(vertex.getId()));
}
verticesList.add(v);
}
long retrievalEndTime = System.nanoTime();