code: private <TResponse> TResponse executeApiCall(AuthleteApiCall<TResponse> apiCall) throws AuthleteApiException
      {
          try
          {
              // Call the Authlete API.
              return apiCall.call();
          }
          catch (WebApplicationException e)
          {
              // Throw an exception with HTTP response information.
              throw createApiException(e, e.getResponse());
          }
          catch (ResponseProcessingException e)
          {
              // Throw an exception with HTTP response information.
              throw createApiException(e, e.getResponse());
          }
          catch (Throwable t)
          {
              // Throw an exception without HTTP response information.
              throw createApiException(t, null);
          }
      }
docs: Execute an Authlete API call.