removed use of deprecated methods
bugzid 5175: set regionId of template properly