code: private Document buildDocument(String location) {
          try {
              return documentBuilderFactory.newDocumentBuilder().parse(ClassPathResource.asInputStream(location));
          } catch (ParserConfigurationException | SAXException | IOException | RuntimeException e) {
              throw new XmlRuleSetException("Could not parse RuleSet from given location '" + location + "'.", e);
          }
      }
docs: Parses the file at the given location and creates a {@link Document} instance to read the rules from.
  
  @param location location of the XML file
  @return {@link Document} instance representing the XML file