snaker-core/src/main/java/org/snaker/engine/parser/ModelParser.java
private static NodeModel parseModel(Node node) {
		String nodeName = node.getNodeName();
		Element element = (Element)node;
		NodeParser nodeParser = null;
		try {
			nodeParser = ServiceContext.getContext().findByName(nodeName, NodeParser.class);
			nodeParser.parse(element);
			return nodeParser.getModel();
		} catch (RuntimeException e) {
			throw new SnakerException(e);
		}
	}
private static NodeModel parseModel(Node node) {
		String nodeName = node.getNodeName();
		Element element = (Element)node;
		NodeParser nodeParser = null;
		try {
			nodeParser = ServiceContext.getContext().findByName(nodeName, NodeParser.class);
			nodeParser.parse(element);
			return nodeParser.getModel();
		} catch (RuntimeException e) {
			throw new SnakerException(e);
		}
	}
private static NodeModel parseModel ( Node node ) { String nodeName = node . getNodeName ( ) ; Element element = ( Element ) node ; NodeParser nodeParser = null ; try { nodeParser = ServiceContext . getContext ( ) . findByName ( nodeName , NodeParser . class ) ; nodeParser . parse ( element ) ; return nodeParser . getModel ( ) ; } catch ( RuntimeException e ) { throw new SnakerException ( e ) ; } }
对流程定义xml的节点，根据其节点对应的解析器解析节点内容
@param node
@return
对流程定义xml的节点，根据其节点对应的解析器解析节点内容