private Validator setupValidator(Set<Schema> schemas) {
        PropertyMapBuilder builder = new PropertyMapBuilder();
        builder.put(ValidateProperty.ERROR_HANDLER, new ErrorHandler() {

            public void error(SAXParseException exception) throws SAXException {
                validationErrors.add(replaceSpecificValues(exception.getMessage()));
            }

            public void fatalError(SAXParseException exception)
                    throws SAXException {
                // should not happen
                validationErrors.add(replaceSpecificValues(exception.getMessage()));
            }

            public void warning(SAXParseException exception)
                    throws SAXException {
            }});
        PropertyMap map = builder.toPropertyMap();
        Validator rv = null;
        for (Schema schema : schemas) {
            Validator v = schema.createValidator(map);
            if (rv == null) {
                rv = v;
            } else {
                rv = new CombineValidator(rv, v);
            }
        }
        return rv;
    }
@param in
@param out
@param rootDir
@param resolver
resources/examples/research-src/nu/validator/batchresearch/ValidationWorker.java