removed too complex branching using closure, make template servlet behaving as groovlet servlet