code: protected <T extends Dto> T updateObject(Class<T> classOfT, String methodKey, T entity) throws Exception {
          return updateObject(classOfT, methodKey, entity, "", "");
      }
docs: Saves the Dto instance.
  @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 entity        Dto instance that is going to be sent.
  @return              The Dto instance returned from API.
  @throws Exception