@Override
public Object execute(final Object[] parameters) {
return template.exec(new GraphCallback<Object>() {
@Override
public Object doWithGraph(GraphDatabase graph) throws Exception {
final ParameterAccessor accessor = new ParametersParameterAccessor(queryMethod.getParameters(), parameters);
Map<String, Object> params = resolveParams(accessor);
final String queryString = createQueryWithPagingAndSorting(accessor);
return dispatchQuery(queryString, params, accessor);
}
});