code: public static List<Locale> getLocalesFromHeader(final String acceptLanguage) {
          if(acceptLanguage == null) {
              return Collections.emptyList();
          }
          return getLocalesFromHeader(Collections.singletonList(acceptLanguage));
      }
docs: Parse a header string and return the list of locales that were found.
  
  If the header is empty or null then an empty list will be returned.
  
  @param acceptLanguage The Accept-Language header
  @return The list of locales, in order of preference