code: synchronized public String addJob(Job aJob) {
      String id = this.getNextJobID();
      aJob.setJobID(id);
      aJob.setState(Job.WAITING);
      this.addToQueue(aJob);
      return id;	
    }
docs: Add a new job.
  @param aJob the new job