public TemplateBuilder load ( ApplicationContext applicationContext ) { Template rootTemplate = applicationContext . getBean ( action . getName ( ) , Template . class ) ; action . setGlobalContext ( rootTemplate . isGlobalContext ( ) ) ; action . setActor ( rootTemplate . getActor ( ) ) ; action . setActions ( rootTemplate . getActions ( ) ) ; action . setParameter ( rootTemplate . getParameter ( ) ) ; return this ; }
Loads template bean from Spring bean application context and sets attributes .