public final List<DisambiguationPatternRule> getRules(final InputStream stream)
throws ParserConfigurationException, SAXException, IOException {
final DisambiguationRuleHandler handler = new DisambiguationRuleHandler();
final SAXParserFactory factory = SAXParserFactory.newInstance();
final SAXParser saxParser = factory.newSAXParser();
Authenticator.setDefault(new PasswordAuthenticator());
saxParser.parse(stream, handler);
return handler.getDisambRules();
}