if (ctx == null) {
logger.warning("no WorkflowContext defined!");
}
logger.info(msg);
try {
<BUG>documentResult=runPlugins(documentResult,event);
</BUG>
} catch (PluginException pe) {
closePlugins(true);
throw pe;

if (ctx == null) {
logger.warning("no WorkflowContext defined!");
}
logger.info(msg);
try {
documentResult = runPlugins(documentResult, event);
} catch (PluginException pe) {
closePlugins(true);
throw pe;
