using late static binding to instantiate a template object

git-svn-id: file:///var/www/svn/anahita/anahita/branches/search@17091 a933e228-e664-4d3f-8241-49479697c698