code: public EngineResult createNewJob(String jobname) {
          HttpPost postRequest = new HttpPost(baseUrl);
          List<NameValuePair> nvp = new LinkedList<NameValuePair>();
          nvp.add(new BasicNameValuePair("action", "create"));
          nvp.add(new BasicNameValuePair("createpath", jobname));
          StringEntity postEntity = null;
          try {
              postEntity = new UrlEncodedFormEntity(nvp);
          } catch (UnsupportedEncodingException e) {
              e.printStackTrace();
          }
          postEntity.setContentType("application/x-www-form-urlencoded");
          postRequest.addHeader("Accept", "application/xml");
          postRequest.setEntity(postEntity);
          return engineResult(postRequest);
      }
docs: Creates a new job and initialises it with the default cxml file which must be modified before launch.
  @param jobname name of the new job
  @return engine state and a list of registered jobs