code: static void export(String path, DbConn cnx, List<String> qNames) throws JqmXmlException
      {
          if (cnx == null)
          {
              throw new IllegalArgumentException("database connection cannot be null");
          }
          if (qNames == null || qNames.isEmpty())
          {
              throw new IllegalArgumentException("queue names list name cannot be null or empty");
          }
          List<Queue> qList = new ArrayList<>();
          for (String qn : qNames)
          {
              Queue q = CommonXml.findQueue(qn, cnx);
              if (q == null)
              {
                  throw new IllegalArgumentException("There is no queue named " + qn);
              }
              qList.add(q);
          }
          export(path, qList, cnx);
      }
docs: Exports all available queues to an XML file.