throw new BuildException(e);
}
try {
if (factory.hasWorkflow(document)) {
String[] roles = new String[0];
Situation situation =
WorkflowFactory.newInstance().buildSituation(roles, getUserId(), getMachineIp());
WorkflowFactory.initHistory(document, newdocument, situation);
}
} catch (WorkflowException e) {
throw new BuildException(e);