@ Override @ RunAsSystem public String resolveCodeWithoutArguments ( String code , Locale locale ) { return Optional . ofNullable ( dataService . query ( L10N_STRING , L10nString . class ) . eq ( MSGID , code ) . findOne ( ) ) . map ( l10nString -> l10nString . getString ( locale ) ) . orElse ( null ) ; }
Looks up a single localized message .