public static Module fromXml(Node config) throws IllegalStateException {
XPath xpath = XPathFactory.newInstance().newXPath();
// Define the xml namespace
XPathNamespaceContext nsCtx = new XPathNamespaceContext(false);
nsCtx.defineNamespaceURI("m", MODULE_XMLNS);
xpath.setNamespaceContext(nsCtx);
return fromXml(config, xpath);
}