transformer.getMsgMgr().warn(null, contextNode,
transformer.getMsgMgr().warn(this, null, contextNode,
  Locale getLocale(TransformerImpl transformer, Node contextNode)          throws TransformerException  {    Locale locale = null;    if (null != m_lang_avt)    {      String langValue = m_lang_avt.evaluate(transformer.getXPathContext(),                                             contextNode, this);      if (null != langValue)      {        // Not really sure what to do about the country code, so I use the        // default from the system.        // TODO: fix xml:lang handling.        locale = new Locale(langValue.toUpperCase(), "");        //Locale.getDefault().getDisplayCountry());        if (null == locale)        {          transformer.getMsgMgr().warn(null, contextNode,                                       XSLTErrorResources.WG_LOCALE_NOT_FOUND,                                       new Object[]{ langValue });  //"Warning: Could not find locale for xml:lang="+langValue);          locale = Locale.getDefault();        }      }    }    else    {      locale = Locale.getDefault();    }    return locale;  }