private MessageResources lookupDefaultStrutsBundle ( ) { Object value = _servletRequest . getAttribute ( Globals . MESSAGES_KEY ) ; if ( value instanceof MessageResources ) return ( MessageResources ) value ; else { if ( value != null ) LOGGER . warn ( "Can not resolve the default module bundle." + " The object resolved from the request is of type " + value . getClass ( ) . toString ( ) ) ; return null ; } }
Lookup the default resource bundle for the current Struts module .