//request.setAttribute(ServletActionContext.WEBWORK_VALUESTACK_KEY,
// stack);
//Moved to WebWorkPortlet doService()
VelocityManager velocityManager = VelocityManager.getInstance();
Context resultContext = velocityManager.createContext(stack, request, response);
response.setContentType("text/html");
try {
String location = (String) ActionContext.getContext().get("template");
Template template = velocityManager.getVelocityEngine().getTemplate(location);
Writer writer = pageContext.getOut();
template.merge(resultContext, writer);
writer.flush();
} catch (Exception e) {