if (getLogger().isDebugEnabled()) {
getLogger().debug(" Invoking workflow event");
}
SynchronizedWorkflowInstances instance = factory.buildSynchronizedInstance(document);
Situation situation = WorkflowHelper.buildSituation(objectModel);
Event[] events = instance.getExecutableEvents(situation);
Event event = null;
for (int i = 0; i < events.length; i++) {
if (events[i].getName().equals(eventName)) {