if (!StringUtils.hasLength(provider)) {
provider = extension.getContributor().getName();
}
Object handler = loadHandler(provider, handlerClassName);
if (handler instanceof NamespaceHandler) {
NamespaceHandler namespaceHandler = (NamespaceHandler) handler;
namespaceHandler.init();
handlers.put(
NamespaceHandlerDescriptor.createNamespaceHandlerDescriptor(uri, null),
namespaceHandler);
}
}
catch (InvalidRegistryObjectException e) {
BeansCorePlugin.log(e);
}
}
for (IConfigurationElement namespaceHandlerConfig : config.getChildren("namespaceHandler")) {
if (uri != null && namespaceHandlerConfig.getAttribute("class") != null) {
try {
String schemaLocation = namespaceHandlerConfig.getAttribute("schemaLocation");
String handlerClassName = namespaceHandlerConfig.getAttribute("class");
String provider = namespaceHandlerConfig.getAttribute("provider");
if (!StringUtils.hasLength(provider)) {
provider = extension.getContributor().getName();
}
Object handler = loadHandler(provider, handlerClassName);
if (handler instanceof NamespaceHandler) {
NamespaceHandler namespaceHandler = (NamespaceHandler) handler;
namespaceHandler.init();
handlers.put(NamespaceHandlerDescriptor.createNamespaceHandlerDescriptor(uri,
schemaLocation), namespaceHandler);
}
}
catch (InvalidRegistryObjectException e) {