Document document, String event, boolean force) throws WorkflowException {
WorkflowManager wfManager = null;
try {
wfManager = (WorkflowManager) manager.lookup(WorkflowManager.ROLE);
Workflowable workflowable = getWorkflowable(manager, session, logger, document);
wfManager.invoke(workflowable, event, force);
} catch (ServiceException e) {
throw new WorkflowException(e);
} finally {
if (wfManager != null) {
manager.release(wfManager);