public QueryResult executeQuery(String statement, String language,
long limit, long offset, HashMap<String, Value> bindVariableMap) throws RepositoryException {
try {
Map<String, PropertyValue> bindMap = convertMap(bindVariableMap);
NamePathMapper namePathMapper = sessionDelegate.getNamePathMapper();
Result r = queryEngine.executeQuery(statement, language, limit, offset,
bindMap, namePathMapper);
return new QueryResultImpl(sessionDelegate, r);
} catch (IllegalArgumentException e) {
throw new InvalidQueryException(e);