public final static long getParentId(DocumentImpl doc, long gid) {
public final static long getParentId(final DocumentImpl doc, final long gid) {
	public final static long getParentId(DocumentImpl doc, long gid) {		final int level = doc.getTreeLevel(gid);		if (level < 0) {			System.out.println("unable to determine level for " + gid);			return -1;		}		return (gid - doc.getLevelStartPoint(level)) / doc.getTreeLevelOrder(level)			+ doc.getLevelStartPoint(level - 1);	}