if (namespaceHandler != null) {
return decorateNamespaceHandler(namespaceHandler);
}
SchemaLocations schemaLocations = EMPTY_SCHEMA_LOCATIONS;
if (documentAccessor != null) {
schemaLocations = documentAccessor.getCurrentSchemaLocations();
}
// Then check for a namespace handler contributed for the specific schemalocation
String schemaLocation = schemaLocations.getSchemaLocation(namespaceUri);
if (schemaLocation != null) {
namespaceHandler = namespaceHandlers.get(NamespaceHandlerDescriptor.createNamespaceHandlerDescriptor(
namespaceUri, schemaLocation));
if (namespaceHandler != null) {
return decorateNamespaceHandler(namespaceHandler);