else { result = new ArrayList<Preference>(); result.add(new PreferenceImpl(Languages.ALL)); }
   private static List<Preference> getLanguagePrefs(HttpConnection connection)   {      List<Preference> result = null;      String acceptLanguage = connection.getRequest().getHeader(HttpHeaders.ACCEPT_LANGUAGE);      if(acceptLanguage != null)      {         PreferenceReaderImpl pr = new PreferenceReaderImpl(PreferenceReaderImpl.TYPE_LANGUAGE,               acceptLanguage);         result = pr.readPreferences();      }      return result;   }