throw new ResourceException(SERVER_ERROR_INTERNAL, "unexpected query type: "
+ query.getClass().getName());
}
try {
GraphResult queryResult = ((GraphQuery)query).evaluate();
return new ModelResultRepresentation(queryResult, service, mediaType);
}
catch (StoreException e) {
throw new ResourceException(e);
}