public String code ( final String code ) { if ( this . theme == null ) { throw new TemplateProcessingException ( "Theme cannot be resolved because RequestContext was not found. " + "Are you using a Context object without a RequestContext variable?" ) ; } return this . theme . getMessageSource ( ) . getMessage ( code , null , "" , this . locale ) ; }
Looks up and returns the value of the given key in the properties file of the currently - selected theme .