code: protected static Module parse(final File moduleXml) throws Exception {
          InputStream is = new FileInputStream(moduleXml);
          try {
              Document document = parseXml(is);
              Element root = document.getDocumentElement();
              ModuleIdentifier main = getModuleIdentifier(root);
              Module module = new Module(main);
              Element dependencies = getChildElement(root, "dependencies");
              if (dependencies != null) {
                  for (Element dependency : getElements(dependencies, "module")) {
                      module.addDependency(getModuleIdentifier(dependency));
                  }
              }
              return module;
          } finally {
              is.close();
          }
      }
docs: Parse the module.xml file.
  @param moduleXml The file to parse
  @return Module representation
  @throws Exception In case of parsing error