public static void main(String[] args) {
    RegionPath rp = new RegionPath(SEPARATOR + "region1" + SEPARATOR + "region11" + SEPARATOR
        + "region111" + SEPARATOR + "region1112");

    System.out.println("name :: " + rp.getName());
    System.out.println("regionpath :: " + rp.getRegionPath());
    System.out.println("parent :: " + rp.getParent());
    System.out.println("parent region path :: " + rp.getParentRegionPath());

    System.out.println("---------------------------------------------------");

    rp = new RegionPath(SEPARATOR + "region1");

    System.out.println("name :: " + rp.getName());
    System.out.println("regionpath :: " + rp.getRegionPath());
    System.out.println("parent :: " + rp.getParent());
    System.out.println("parent region path :: " + rp.getParentRegionPath());
  }
@return Parent RegionPath of this RegionPath. null if this is a root region
geode-core/src/main/java/org/apache/geode/management/internal/util/RegionPath.java