question: private void addTemplate ( String templateName , String templateText ) { StringBuilder nameBuilder = new StringBuilder ( ) ; if ( ! templateName . startsWith ( TEMPLATE_PREFIX ) ) { nameBuilder . append ( TEMPLATE_PREFIX ) ; } nameBuilder . append ( templateName ) ; messageTemplates . put ( nameBuilder . toString ( ) , templateText ) ; }
target:  registers a template name with the corresponding text