code: private Map<String, Object> getMap(String[] pathKeys)
      {
          if (pathKeys == null)
          {
              return (Map<String, Object>)resourceData;
          }
          
          Map<String, Object> selected = (Map<String, Object>)resourceData;
      
          for(int i = 0; i < pathKeys.length; i++)
          {
              if (selected.containsKey(pathKeys[i]) && selected.get(pathKeys[i]).getClass().equals(resourceData.getClass()))
              {
                  selected = (Map<String, Object>) selected.get(pathKeys[i]);
              }
              else
              {
                  return null;
              }
          }
          
          return selected;
      }
docs: Get a map embedded in the activity following a set of keys
  
  @param pathKeys An array of keys to follow to get to the requested map
  @return The requested map or null if it does not exist