code: public Locale getAcceptLanguage() {
  		// See section 14.4 of RFC 2616 (HTTP/1.1) for more information about how the Accept-Language header
  		// must interpreted to determine the preferred language of the client.
  		Locale preferredLocale = null;
  		float q = 0;
  		Iterator<Header> it = (Iterator<Header>) this.message
  			.getHeaders(AcceptLanguageHeader.NAME);
  		while (it.hasNext()) {
  			AcceptLanguageHeader alh = (AcceptLanguageHeader) it.next();
  			if(preferredLocale == null) {
  				preferredLocale = alh.getAcceptLanguage();
  				q = alh.getQValue();
  			} else {
  				if(alh.getQValue() > q) {
  					preferredLocale = alh.getAcceptLanguage();
  					q = alh.getQValue();
  				}
  			}
  		}
  		return preferredLocale;
  	}
docs: /*
  (non-Javadoc)
  @see javax.servlet.sip.SipServletMessage#getAcceptLanguage()