*/
public ProcessDefinition getPageflowDefinitionFromXml(String pageflowDefinition)
{
InputStream stream = null;
try {
stream = new ReaderInputStream(new StringReader(pageflowDefinition));
return Jbpm.parseInputSource(new InputSource(stream));
} finally {
Resources.closeStream(stream);
}
}