private void packagePage(Object bodyContext)
throws IOException, ProtocolException {
MarinerRequestContext requestContext = context.getRequestContext();
ApplicationContext ac =
ContextInternals.getApplicationContext(requestContext);
Packager packager = ac.getPackager();
if (packager != null) {
try {
packager.createPackage(requestContext, this, bodyContext);
} catch (PackagingException e) {
Throwable cause = e.getCause();
if (cause instanceof IOException) {
throw (IOException)cause;