public static String getLocalizedMessage(CmsMessageContainer container, PageContext context) {

        return Messages.getLocalizedMessage(container, context.getRequest());
    }
public static String getLocalizedMessage ( CmsMessageContainer container , PageContext context ) { return Messages . getLocalizedMessage ( container , context . getRequest ( ) ) ; }
Returns the String for the given CmsMessageContainer localized to the current user's locale
if available or to the default locale else.
<p>

This method is needed for localization of non- {@link org.opencms.main.CmsException}
instances that have to be thrown here due to API constraints (javax.servlet.jsp).
<p>

@param container A CmsMessageContainer containing the message to localize.
@param context The page context that is known to any calling
{@link javax.servlet.jsp.tagext.TagSupport} instance (member
<code>pageContext</code>).
@return the String for the given CmsMessageContainer localized to the current user's locale
if available or to the default locale else.
<p>