code: private static String convertCommaSeparatedListToEditionString(String csList) throws RepositoryException {
  
          if (csList == null) {
              return null;
          }
  
          // Split the comma separated list into an array
          csList = csList.trim();
          List<Edition> editions = new ArrayList<Edition>();
          if (csList.length() > 0) {
              String[] sArray = csList.split(",");
              for (String s : sArray) {
                  if (s.length() != 0) {
                      try {
                          editions.add(Edition.valueOf(s));
                      } catch (IllegalArgumentException e) {
                          throw new RepositoryException("The list of editions '" + s + "' contained an invalid edition", e);
                      }
                  }
              }
          }
  
          // convert the editions into a string
          String editionString = null;
          for (Edition ed : editions) {
              if (editionString == null) {
                  editionString = "; productEdition=\"";
                  editionString = editionString + ed.getProductEdition();
              } else {
                  editionString = editionString + "," + ed.getProductEdition();
              }
          }
          if (editionString == null) {
              editionString = "";
          } else {
              editionString = editionString + "\"";
          }
          return editionString;
      }
docs: Convert a comma separated list String of editions into the required
  format e.g. "; productEdition=\"BASE,DEVELOPERS,EXPRESS,ND,zOS\"
  
  @param editions
  @return String the product edition supported