@Override
    public void endDocument() throws SAXException {
        if (!"0".equals(System.getProperty(
                "nu.validator.checker.enableLangDetection"))
                && htmlStartTagLocator != null) {
            detectLanguageAndCheckAgainstDeclaredLanguage();
        }
    }
@see nu.validator.checker.Checker#endDocument()
src/nu/validator/checker/LanguageDetectingChecker.java