code: static boolean validateDefinition(final Document def, final ProcessLanguage language) {
          return XmlUtils.validate(new DOMSource(def), language.getSchemaSources());
      }
docs: Validate a given jPDL process definition against the applicable definition language's schema.
  
  @param def
  The process definition, in {@link Document} format.
  @param language
  The process definition language for which the given definition is to be validated.
  @return Whether the validation was successful.