code: public <T extends MPBase> T getByIndex(int index) {
          T resource = (T) _resourceArray.get(index);
          return resource;
      }
docs: It returns one resource using its index in the array
  
  @param index             an int with the index
  @param <T>
  @return