protected ST prepareTemplate ( ST prototype , D domainObject , Map < String , ContentInfo > contentInfo ) { ST template = new ST ( prototype ) ; template . add ( MODEL_VARIABLE , domainObject ) ; template . add ( CONTENT_VARIABLE , contentInfo ) ; return template ; }
Prepares the template by adding the variables .