protected void setErrorProfile() {
        if (htmlParser == null) {
            return;
        }
        profile = request.getParameter("profile");
        HashMap<String, String> profileMap = new HashMap<>();
        if (profile == null) {
            profileMap.put("html-strict", "warn");
            htmlParser.setErrorProfile(profileMap);
            return;
        }
        if ("pedagogical".equals(profile)) {
            profileMap.put("xhtml1", "warn");
        } else if ("polyglot".equals(profile)) {
            profileMap.put("xhtml1", "warn");
            profileMap.put("xhtml2", "warn");
        } else {
            return; // presumed to be permissive
        }
        htmlParser.setErrorProfile(profileMap);
    }
@throws SAXException
@throws IOException
@throws IncorrectSchemaException
src/nu/validator/servlet/VerifierServletTransaction.java