public PageEnvelope getPageEnvelope(FOM_Cocoon cocoon) throws PageEnvelopeException {
Request request = getRequest(cocoon);
try {
Session session = RepositoryUtil.getSession(this.manager, request);
DocumentFactory map = DocumentUtil.createDocumentFactory(this.manager, session);
PageEnvelopeFactory factory = PageEnvelopeFactory.getInstance();
Publication publication = PublicationUtil.getPublication(this.manager, request);
return factory.getPageEnvelope(map, cocoon.getObjectModel(), publication);
} catch (Exception e) {
throw new PageEnvelopeException(e);
}
}