Example #1
0
 protected static String _privk3_getContextPath(
     final RegionAspectRegionAspectProperties _self_,
     final Region _self,
     final AbstractState _vertex) {
   String root = "currentState";
   ArrayList<Region> parentRegions = new ArrayList<Region>();
   Region currentRegion = _vertex.getOwnerRegion();
   while ((!Objects.equal(currentRegion, null))) {
     {
       parentRegions.add(currentRegion);
       State _ownerState = currentRegion.getOwnerState();
       boolean _notEquals = (!Objects.equal(_ownerState, null));
       if (_notEquals) {
         State _ownerState_1 = currentRegion.getOwnerState();
         Region _ownerRegion = _ownerState_1.getOwnerRegion();
         currentRegion = _ownerRegion;
       } else {
         currentRegion = null;
       }
     }
   }
   for (int i = (parentRegions.size() - 1); (i >= 0); i--) {
     String _root = root;
     Region _get = parentRegions.get(i);
     String _name = _get.getName();
     String _plus = ("-" + _name);
     root = (_root + _plus);
   }
   return root;
 }