public TemplateManager getTemplateManager()
{
if (templateManager == null)
{
// if (isClientSide())
templateManager= new HTMLTemplateManager();
// else
// templateManager= getServerSideServiceFactory().createSyncService(TemplateManager.class);
}
return templateManager;