code: protected <T extends Dto> T createObject(Class<T> classOfT, String idempotencyKey, String methodKey, T entity) throws Exception {
          return createObject(classOfT, idempotencyKey, methodKey, entity, "");
      }
docs: Creates 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 idempotencyKey    idempotency key for this request.
  @param methodKey         Relevant method key.
  @param entity            Dto instance that is going to be sent.
  @return                  The Dto instance returned from API.
  @throws Exception