NodeProxy first = getFirstParent(new NodeProxy(doc, nodeId), null, false, 0); return (first != null);
NodeProxy first = getFirstParent(new NodeProxy(doc, nodeId), null, false, 0);    return ((first != null) || (context.get(doc, XMLUtil.getParentId(doc, nodeId)) != null));
	public boolean contains(DocumentImpl doc, long nodeId) {		NodeProxy first = getFirstParent(new NodeProxy(doc, nodeId), null, false, 0);		return (first != null);	}