protected SchemaLibrary.Results validate( String documentUri,
String schemaUri ) {
Document doc = docs.get(documentUri);
ValidationResult problems = new ValidationResult();
SchemaDocument schema = schemaDocs.get(schemaUri, problems);
if (schema != null) {
schema.getValidator().validate(null, null, doc, Paths.rootPath(), problems, schemaDocs);
}
return problems;
}