code: private List<Locale> getDefaultLocales(String defaultNames) {
  
          List<Locale> result = null;
          if (defaultNames != null) {
              result = getAvailableLocales(defaultNames);
          }
          if ((result == null) || (result.size() == 0)) {
              return getDefaultLocales();
          } else {
              return result;
          }
      }
docs: Internal helper, returns an array of default locales for the given default names.<p>
  
  If required returns the system configured default locales.<p>
  
  @param defaultNames the default locales to use, can be <code>null</code> or a comma separated list
  of locales, for example <code>"en, de"</code>
  
  @return an array of default locales for the given default names