public void fill ( final LmlParser parser ) { this . parser = parser ; for ( final Entry < String , I18NBundle > bundle : bundles ) { parser . getData ( ) . addI18nBundle ( bundle . key , bundle . value ) ; if ( defaultBundle . equals ( bundle . key ) ) { parser . getData ( ) . setDefaultI18nBundle ( bundle . value ) ; } } }
Should be called after bundles are loaded .