boolean validating = !skipSchemaValidation();
if (!validating)
return null;
//1. resolve given path
FileLookup fileLookup = FileLookupFactory.newInstance();
InputStream is;
if (localPathToSchema != null) {
// Schema's are always stored in Infinispan
is = fileLookup.lookupFile(localPathToSchema, null);
if (is != null) {
log.debugf("Using schema %s", localPathToSchema);
return is;
}
if (log.isDebugEnabled()) {
log.debugf("Could not find schema on path %s, resolving %s to %s",
localPathToSchema, SCHEMA_SYSTEM_PROPERTY, schemaPath());
}
}
//2. resolve local schema path in infinispan distro
is = fileLookup.lookupFile(schemaPath(), null);
if (is != null) {
log.debugf("Using schema %s", schemaPath());
return is;
}
if (log.isDebugEnabled()) {