public Collection<Value> pathQuery(Value context, String path, Map<String, String> namespaces) throws LDPathParseException {
try {
RepositoryConnection conn = sesameService.getConnection();
try {
conn.begin();
SesameConnectionBackend backend = SesameConnectionBackend.withConnection(conn);
LDPath<Value> ldpath = new LDPath<Value>(backend, config);
return ldpath.pathQuery(context, path, namespaces);
} finally {
conn.commit();