code: public Set<String> getVisibleQueues(PermissionManager permissionManager) {
  		Set<String> ret = new HashSet<String>();
  		for (QueueDefinition queueDefinition: m_queues) {
  			if (permissionManager.hasPermission(FixedPermissions.ADMIN)) {
  				ret.add(queueDefinition.getName());
  				continue;
  			}
  			if (!ret.contains(queueDefinition.getName())) {
  				if (permissionManager.hasPermission(queueDefinition.getPermission()) ||
  						permissionManager.hasPermission(queueDefinition.getReadPermission())) {
  					ret.add(queueDefinition.getName());
  				}
  			}
  		}
  		return ret;
  	}
docs: Get the list of queues visible to this user ie to the user with the permissions
  defined in the given permissions manager. ADMIN permission means all are visible.
  @param permissionManager
  @return list of queue names.