boolean found = false;
	public final static boolean isDescendantOrSelf(		DocumentImpl doc,		long ancestor,		long descendant) {		boolean found = false;		if (ancestor == descendant)			found = true;		while ( (!found) && (descendant = getParentId(doc, descendant)) > -1) {			if (descendant == ancestor)				found = true;		}		return found;	}