String createQueueListValue(JobDetails jobDetails, String existingQueues) {
    /*
     * check if queue already exists append separator at the end to avoid
     * "false" queue match via substring match
     */
    String queue = jobDetails.getQueue();
    queue = queue.concat(Constants.SEP);

    if (existingQueues == null) {
      return queue;
    }

    if (!existingQueues.contains(queue)) {
      existingQueues = existingQueues.concat(queue);
    }
    return existingQueues;
  }
String createQueueListValue ( JobDetails jobDetails , String existingQueues ) { String queue = jobDetails . getQueue ( ) ; queue = queue . concat ( Constants . SEP ) ; if ( existingQueues == null ) { return queue ; } if ( ! existingQueues . contains ( queue ) ) { existingQueues = existingQueues . concat ( queue ) ; } return existingQueues ; }
looks at {@Link String} to see if queue name already is stored, if not,
adds it
@param {@link JobDetails}
@param {@link Result}
@return queue list