move Cache intialization back to getTemplate Method

Portletcache is not intialized in a static block which can lead to
errors, when getTemplate is called the Portelcache should be available