return (Node) new DOMTransaction(this, domDb) { public Object start() { Value val = domDb.get(new NodeProxy((DocumentImpl) doc, gid)); if (val == null) {     return null; } NodeImpl node = NodeImpl.deserialize( val.getData(), 0, val.getLength(), (DocumentImpl) doc); node.setGID(gid); node.setOwnerDocument(doc); node.setInternalAddress(val.getAddress()); return node; } } .run(); }
return objectWith(doc, gid, -1); }
	public Node objectWith(final Document doc, final long gid) {		return (Node) new DOMTransaction(this, domDb) {			public Object start() {				Value val = domDb.get(new NodeProxy((DocumentImpl) doc, gid));				if (val == null) {//				    if(LOG.isDebugEnabled()) {//				        LOG.debug("node " + gid + " not found in document " + ((DocumentImpl)doc).getDocId());//				        Thread.dumpStack();//				    }					return null;				}				NodeImpl node =					NodeImpl.deserialize(						val.getData(),						0,						val.getLength(),						(DocumentImpl) doc);				node.setGID(gid);				node.setOwnerDocument(doc);				node.setInternalAddress(val.getAddress());				return node;			}		}		.run();	}