code: protected <T extends Dto> T getObject(Class<T> classOfT, String methodKey, String entityId, String secondEntityId) throws Exception {
  
          String urlMethod = String.format(this.getRequestUrl(methodKey), entityId, secondEntityId);
  
          RestTool rest = new RestTool(this.root, true);
          T response = rest.request(classOfT, null, urlMethod, this.getRequestType(methodKey));
  
          return response;
      }
docs: Gets the Dto instance from API.
  @param <T>               Type on behalf of which the request is being called.
  @param classOfT          Type on behalf of which the request is being called.
  @param methodKey         Relevant method key.
  @param entityId          Entity identifier.
  @param secondEntityId    Entity identifier for the second entity.
  @return                  The Dto instance returned from API.
  @throws Exception