code: static Document loadDefinition(final File def) {
          // Parse the jDPL definition into a DOM tree.
          final Document document = XmlUtils.parseFile(def);
          if (document == null) {
              return null;
          }
  
          // Log the jPDL version from the process definition (if applicable and available).
          final Node xmlnsNode = document.getFirstChild().getAttributes().getNamedItem("xmlns");
          if (xmlnsNode != null && StringUtils.isNotBlank(xmlnsNode.getNodeValue()) && xmlnsNode.getNodeValue().contains("jpdl")) {
              final String version = xmlnsNode.getNodeValue().substring(xmlnsNode.getNodeValue().length() - 3);
              LOGGER.info("jPDL version == " + version);
          }
  
          return document;
      }
docs: Load a process definition from file.
  
  @param def
  The {@link File} which contains a definition.
  @return The definition in {@link Document} format, or <code>null</code> if the file could not be found or didn't contain parseable XML.