code: @Override
      public int enqueue(JobRequest jd)
      {
          try
          {
              return target.path("ji").request().post(Entity.entity(jd, MediaType.APPLICATION_XML), JobInstance.class).getId();
          }
          catch (BadRequestException e)
          {
              throw new JqmInvalidRequestException(e.getResponse().readEntity(String.class), e);
          }
          catch (Exception e)
          {
              throw new JqmClientException(e);
          }
      }
docs: /////////////////////////////////////////////////////////////////////