code: public void promoteModule(final String name, final String version, final String user, final String password) throws GrapesCommunicationException, AuthenticationException{
          final Client client = getClient(user, password);
          final WebResource resource = client.resource(serverURL).path(RequestUtils.promoteModulePath(name, version));
          final ClientResponse response = resource.type(MediaType.APPLICATION_JSON).post(ClientResponse.class);
  
          client.destroy();
          if(ClientResponse.Status.OK.getStatusCode() != response.getStatus()){
              final String message = String.format(FAILED_TO_GET_MODULE, "promote module", name, version);
              if(LOG.isErrorEnabled()) {
                  LOG.error(String.format(HTTP_STATUS_TEMPLATE_MSG, message, response.getStatus()));
              }
              throw new GrapesCommunicationException(message, response.getStatus());
          }
      }
docs: Promote a module in the Grapes server
  
  @param name
  @param version
  @throws GrapesCommunicationException
  @throws javax.naming.AuthenticationException