The core class provided by the Discovery Framework to access localized messages is com.endeca.portlet.util.LanguageUtils. There are several ways to use this class.