public Map < String , String > getTitleLocale ( ) { if ( m_localeTitles == null ) { m_localeTitles = CmsCollectionsGenericWrapper . createLazyMap ( new Transformer ( ) { public Object transform ( Object inputLocale ) { Locale locale = null ; if ( null != inputLocale ) { if ( inputLocale instanceof Locale ) { locale = ( Locale ) inputLocale ; } else if ( inputLocale instanceof String ) { try { locale = LocaleUtils . toLocale ( ( String ) inputLocale ) ; } catch ( IllegalArgumentException | NullPointerException e ) { // do nothing, just go on without locale } } } return getLocaleSpecificTitle ( locale ) ; } } ) ; } return m_localeTitles ; }
Get the title and read the Title property according the provided locale .