throws ParserConfigurationException, SAXException, IOException, WorkflowBuildException {
NamespaceHelper helper = new NamespaceHelper(NAMESPACE, DEFAULT_PREFIX, document);
Element root = document.getDocumentElement();
State initialState = null;
Map states = new HashMap();
Map events = new HashMap();
// load states