code: public synchronized Document readPolicy(File file)
              throws ParsingException {
          try {
              return builder.parse(file);
          } catch (IOException ioe) {
              throw new ParsingException("Failed to read the file", ioe);
          } catch (SAXException saxe) {
              throw new ParsingException("Failed to parse the file", saxe);
          }
      }
docs: Tries to read an XACML policy or policy set from the given file.
  
  @param file
  the file containing the policy to read
  @return a (potentially schema-validated) policy loaded from the given
  file
  @throws ParsingException
  if an error occurs while reading or parsing the policy