if (logger.isDebugEnabled()) {
dumpRequestAttributes(request);
}
StringResponseWrapper wrapper = new StringResponseWrapper(response);
try {
rd.include(request, wrapper);
} catch (ServletException e) {
throw new RenderException(e.getRootCause() != null ? e.getRootCause() : e);
} catch (IOException e) {
throw new RenderException(e);
} finally {
request.setAttribute("currentModule", oldModule);
}
try {
return wrapper.getString();
} catch (IOException e) {
throw new RenderException(e);
}
}