code: public static String getQueueName(Configuration jobConf) {
  		// look for the hadoop2 queuename first
  		String hRavenQueueName = jobConf.get(Constants.QUEUENAME_HADOOP2);
  		if (StringUtils.isBlank(hRavenQueueName)) {
  			// presumably a hadoop1 conf, check for fair scheduler pool name
  			hRavenQueueName = jobConf
  					.get(Constants.FAIR_SCHEDULER_POOLNAME_HADOOP1);
  			if (StringUtils.isBlank(hRavenQueueName)) {
  				// check for capacity scheduler queue name
  				hRavenQueueName = jobConf
  						.get(Constants.CAPACITY_SCHEDULER_QUEUENAME_HADOOP1);
  				if (StringUtils.isBlank(hRavenQueueName)) {
  					// neither pool (hadoop1) nor queuename (hadoop2) found
  					// presumably FIFO scheduler, hence set to "DEFAULT_QUEUE"
  					hRavenQueueName = Constants.DEFAULT_QUEUENAME;
  					LOG.info(" Found neither "
  							+ Constants.FAIR_SCHEDULER_POOLNAME_HADOOP1
  							+ " nor " + Constants.QUEUENAME_HADOOP2 + " nor "
  							+ Constants.CAPACITY_SCHEDULER_QUEUENAME_HADOOP1
  							+ " hence presuming FIFO scheduler "
  							+ " and setting the queuename to "
  							+ Constants.DEFAULT_QUEUENAME);
  				}
  			}
  		}
  		return hRavenQueueName;
  	}
docs: retrieves the queue name from a hadoop conf
  looks for hadoop2 and hadoop1 settings
  
  @param jobConf
  @return queuename