if (getParent() == null || (getParent().getType() & Spatial.TERRAIN_PAGE) != 0) return null;
if (getParent() == null || (getParent().getType() & SceneElement.TERRAIN_PAGE) != 0) return null;
   private TerrainPage _findRightPage() {       if (getParent() == null || (getParent().getType() & Spatial.TERRAIN_PAGE) != 0) return null;       TerrainPage pPage = (TerrainPage)getParent();       if (quadrant == 1)           return pPage.getPage(3);       else if (quadrant == 2)           return pPage.getPage(4);       else if (quadrant == 3) {           TerrainPage tp = pPage._findRightPage();           if (tp != null)               return tp.getPage(1);       } else if (quadrant == 4) {           TerrainPage tp = pPage._findRightPage();           if (tp != null)               return tp.getPage(2);       }       return null;   }