// double checking for null as Resin had problems with that
final BodyContent body = getBodyContent();
if ( body != null ) {
final JspWriter writer = getPreviousOut();
if ( writer != null ) {
body.writeOut(writer);
}
}
} catch (IOException ioex) {
log.error(ioex);
throw new JspException(ioex.getMessage());