code: private String stringValueOf(List<Locale> locales) {
          StringBuffer sb = new StringBuffer();
          for (Locale locale : locales) {
              if (sb.length() > 0) {
                  sb.append(",");
              }
              sb.append(locale.toString());
          }
          return sb.toString();
      }
docs: Constructs a comma-delimited list of locales that could be parsed back into a Locale array
  with parseLocales(String localeStringList).
  
  @param locales the list of locales
  @return a string representing the list of locales