Template target = getTargetTemplate(context);
// handle parameters if any
ParameterSet params = assembleParams(context, actualParams);
ParameterSet tunnels = assembleTunnelParams(context, tunnelParams);
// Call the named template. Actually, don't call it; rather construct a call package
// and return it to the caller, who will then process this package.
//System.err.println("Call template using tail recursion");
if (params==null) { // bug 490967
params = new ParameterSet();
}
return new CallTemplatePackage(target, params, tunnels, context);
}