In my portlet I reference labels captions with #{activePreferencesBean.XYZApp.applicationResourcesProvider[“mylabelkey”]} witch resolve to the files AppResources_xx.properties I have in the project.
But I need do the same (to generate localized messages) in Java using this same application provider (and files)
I test with ContextUtils.localizeMessage(ContextUtils.getFacesContext(), “AppResources”, “prueba”, null, false) but It returns an exception “Unable to load ResourceBundle, basename=AppResources, locale=en”