VelocityContext velocityContext =
VelocityEngineUtil.getWrappedStandardToolsContext();
velocityContext.put("processor", processor);
VelocityVariables.insertVariables(velocityContext, request);
StringServletResponse stringResponse = new StringServletResponse(
<BUG>response);
MethodWrapper methodWrapper = new MethodWrapper(</BUG>
"com.liferay.taglib.util.VelocityTaglib", "init",
new Object[] {
<BUG>servletContext, request, stringResponse, pageContext

});</BUG>
Object velocityTaglib = MethodInvoker.invoke(methodWrapper);

VelocityContext velocityContext =
VelocityEngineUtil.getWrappedStandardToolsContext();
velocityContext.put("processor", processor);
VelocityVariables.insertVariables(velocityContext, request);
StringServletResponse stringResponse = new StringServletResponse(
response);
UnsyncStringWriter unsyncStringWriter = new UnsyncStringWriter(true);
MethodWrapper methodWrapper = new MethodWrapper(
"com.liferay.taglib.util.VelocityTaglib", "init",
new Object[] {
servletContext, request, stringResponse, pageContext,
unsyncStringWriter
});
Object velocityTaglib = MethodInvoker.invoke(methodWrapper);
