public NodeProxy parentWithChild(DocumentImpl doc, long gid, boolean directParent) { NodeProxy p = parentWithChild(doc, gid, directParent, false); if (p != null) addInternal(p); return p;
public NodeProxy parentWithChild( DocumentImpl doc, long gid, boolean directParent, boolean includeSelf, int level) { NodeProxy first = getFirstParent(new NodeProxy(doc, gid), null, includeSelf, directParent, 0); if (first != null) addInternal(first); return first;
	public NodeProxy parentWithChild(DocumentImpl doc, long gid, boolean directParent) {		NodeProxy p = parentWithChild(doc, gid, directParent, false);		if (p != null)			addInternal(p);		return p;	}