public NodeSet getSiblings(DocumentImpl doc, long gid) { int level = doc.getTreeLevel(gid);  long pid = (gid - doc.getLevelStartPoint(level)) / doc.getTreeLevelOrder(level) + doc.getLevelStartPoint(level - 1);  long f_gid = (pid - doc.getLevelStartPoint(level - 1)) * doc.getTreeLevelOrder(level) + doc.getLevelStartPoint(level);  long e_gid = f_gid + doc.getTreeLevelOrder(level);  NodeSet set = getRange(doc, f_gid, e_gid); return set; }
public NodeSet getSiblings(DocumentImpl doc, long gid);
	public NodeSet getSiblings(DocumentImpl doc, long gid) {		int level = doc.getTreeLevel(gid);		// get parents id		long pid =			(gid - doc.getLevelStartPoint(level))				/ doc.getTreeLevelOrder(level)				+ doc.getLevelStartPoint(level - 1);		// get first childs id		long f_gid =			(pid - doc.getLevelStartPoint(level - 1))				* doc.getTreeLevelOrder(level)				+ doc.getLevelStartPoint(level);		// get last childs id		long e_gid = f_gid + doc.getTreeLevelOrder(level);		// get all nodes between first and last childs id		NodeSet set = getRange(doc, f_gid, e_gid);		return set;	}