throw new IOException("Could not find schema file for validation.");
}
schemaFactory.setResourceResolver(ConfigFilesXmlValidationUtils.JAVAEE_5_LS_RESOURCE_RESOLVER);
Schema schema = schemaFactory.newSchema(schemaFile);
Validator validator = schema.newValidator();
URLConnection conn = xmlFile.openConnection();
conn.setUseCaches(false);
InputStream is = conn.getInputStream();
Source source = new StreamSource(is);
validator.setErrorHandler(VALIDATION_ERROR_HANDLER);