code: synchronized QueueAclsInfo[] getQueueAcls(UserGroupInformation
            ugi) throws IOException {
      //List of all QueueAclsInfo objects , this list is returned
      ArrayList<QueueAclsInfo> queueAclsInfolist =
              new ArrayList<QueueAclsInfo>();
      QueueOperation[] operations = QueueOperation.values();
      for (String queueName : queueNames) {
        QueueAclsInfo queueAclsInfo = null;
        ArrayList<String> operationsAllowed = null;
        for (QueueOperation operation : operations) {
          if (hasAccess(queueName, operation, ugi)) {
            if (operationsAllowed == null) {
              operationsAllowed = new ArrayList<String>();
            }
            operationsAllowed.add(operation.getAclName());
          }
        }
        if (operationsAllowed != null) {
          //There is atleast 1 operation supported for queue <queueName>
          //, hence initialize queueAclsInfo
          queueAclsInfo = new QueueAclsInfo(queueName, operationsAllowed.toArray
                  (new String[operationsAllowed.size()]));
          queueAclsInfolist.add(queueAclsInfo);
        }
      }
      return queueAclsInfolist.toArray(new QueueAclsInfo[
              queueAclsInfolist.size()]);
    }
docs: Generates the array of QueueAclsInfo object. The array consists of only those queues
  for which user <ugi.getUserName()> has acls
  
  @return QueueAclsInfo[]
  @throws java.io.IOException