Properties props = new Properties();
props.put("_children", childmapping);
DbMapping dbmap = new DbMapping(core.app, null, props, true);
dbmap.update();
WrappedNodeManager nmgr = core.app.getWrappedNodeManager();
Node node = new Node("HopQuery", Long.toString(collectionId++), null, nmgr);
node.setDbMapping(dbmap);
node.setState(Node.VIRTUAL);
return new HopObject("HopQuery", core, node, core.hopObjectProto);
}