protected void publish(Document authoringDocument) {
DocumentManager documentManager = null;
try {
documentManager = (DocumentManager) this.manager.lookup(DocumentManager.ROLE);
documentManager.copyToArea(authoringDocument, Publication.LIVE_AREA);
WorkflowUtil.invoke(this.manager, getLogger(), authoringDocument, getEvent());
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
if (documentManager != null) {