Temp fix for WorkspacePref.template when karma deployed as WAR