code: protected RestResponse performRequest(final HttpUriRequest request) throws IOException, AppPlatformException {
  
          if (this.usersUri == null || this.usersUri.isEmpty()
                  || this.token == null || this.token.isEmpty()
                  || this.secret == null || this.secret.isEmpty()) {
  
              throw new MissingCredentialsException();
          }
  
          RestResponse restResponse = RestResponse.createRestResponse(httpClient.execute(request));
  
          if (restResponse.getStatus() >= 400) {
              throw new AppPlatformException(restResponse.getResponseText(), restResponse.getStatus());
          }
  
          return restResponse;
      }
docs: Helper method that executes the request on the server.
  
  @param request the request.
  @return the response.
  @throws IOException unexpected exception.
  @throws AppPlatformException unexpected exception.