public void getRegionFromCache(String region) throws Exception {
    try {
      Region subregion = currRegion.getSubregion(region);

      if (subregion == null) {
        makeRegion(region);
        currRegion = currRegion.getSubregion(region);
      } else {
        currRegion = subregion;
      }

    } catch (Exception e) {
      System.out.println("err: " + e);
      e.printStackTrace();
      throw new Exception(" failed in getRegionFromCache ");
    }

  }
Checks whether a region passed in the param exists in the curr region or not. If doesnt exist
then calls mkrgn() to create it. Finally makes data member currRegion point to that region.
geode-junit/src/main/java/org/apache/geode/internal/jta/JTAUtils.java