if (limitTake >= 0) {
query = query.limit(limitTake);
}
if (returnType == ReturnType.VERTICES || returnType == ReturnType.VERTEX_IDS) {
final Iterable<Vertex> vertexQueryResults = query.vertices();
for (Vertex v : vertexQueryResults) {
if (counter >= start && counter < end) {
if (returnType.equals(ReturnType.VERTICES)) {
elementArray.put(GraphSONUtility.jsonFromElement(v, returnKeys, mode));
} else {