porting annotation resolver and support for alias of @Template annotation #236