* @throws ImportException if the XPDL is not correct.
*/
public DefaultProcessDefinition (Document processDefinition)
throws JDOMException, ImportException {
try {
SAXOutputter outputter = new SAXOutputter();
procDef = new SAXEventBufferImpl ();
outputter.setContentHandler(procDef);
outputter.setLexicalHandler(procDef);
outputter.output (processDefinition);
} catch (JDOMException e) {
String s = "Cannot get XPDL from DOM: " + e.getMessage();
logger.error (s, e);
throw new IllegalArgumentException (s);
}