}
NodeDelegate node = parentNode.addChild(nodeName);
if (node == null) {
throw new ItemExistsException("Node already exists: " + absPath);
}
node.setProperty("statement", vf.getCoreValue(vf.createValue(statement)));
node.setProperty("language", vf.getCoreValue(vf.createValue(language)));
NodeImpl n = new NodeImpl(node);
n.setPrimaryType(NodeType.NT_QUERY);
storedQueryPath = oakPath;
return n;