code: private javax.ws.rs.client.Client getJaxRsClient()
      {
          // If a JAX-RS client has not been created yet.
          if (mJaxRsClient == null)
          {
              // Create a JAX-RS client.
              javax.ws.rs.client.Client client = createJaxRsClient();
  
              synchronized (this)
              {
                  if (mJaxRsClient == null)
                  {
                      mJaxRsClient = client;
                  }
              }
          }
  
          // Set a connection timeout.
          setConnectionTimeout(mJaxRsClient);
  
          // Set a read timeout.
          setReadTimeout(mJaxRsClient);
  
          return mJaxRsClient;
      }
docs: Get an instance of JAX-RS client.