private String findMessage ( final String messageKey ) { String message = null ; try { if ( ! this . resourceBundles . isEmpty ( ) ) { for ( int i = this . resourceBundles . size ( ) - 1 ; i >= 0 && message == null ; i -- ) { if ( this . resourceBundles . get ( i ) . containsKey ( messageKey ) ) { message = this . resourceBundles . get ( i ) . getString ( messageKey ) ; } } } } catch ( final MissingResourceException e ) { LOGGER . error ( "Message key not found into resource bundle" , e ) ; } return message ; }
Retrieved the message mapped with the given key .