try {
Set<URI> fullServerNames = new HashSet<URI>();
for (URI server : servers) {
fullServerNames.add(create(server.toString() + "/graph/" + graphName));
}
final QueryClient queryClient = new DistributedQueryClientImpl(fullServerNames, handler);
final Map<String, String> ext = new HashMap<String, String>();
ext.put("maxRows", Long.toString(maxRows));
return queryClient.executeQuery(queryString, ext);
} catch (Exception e) {
throw new ResourceException(e);
}
}