code: @Override
      public int enqueue(JobRequest runRequest)
      {
          jqmlogger.trace("BEGINING ENQUEUE - request is for application name " + runRequest.getApplicationName());
  
          // Form validity.
          if ((runRequest.getApplicationName() == null || runRequest.getApplicationName().trim().isEmpty())
                  && runRequest.getScheduleId() == null)
          {
              throw new JqmClientException("Invalid execution request: applicationName is empty");
          }
          runRequest.setParameters(runRequest.getParameters()); // This will validate parameters.
  
          DbConn cnx = null;
          try
          {
              cnx = getDbSession();
              return enqueueWithCnx(runRequest, cnx);
          }
          finally
          {
              closeQuietly(cnx);
          }
      }
docs: /////////////////////////////////////////////////////////////////////