String uri = NamespaceHelper.createDiscoveryPathName(namespaceURI);
Properties props = PropertiesLoaderUtils.loadAllProperties(uri);
String compClassName = props.getProperty("component");
if (compClassName != null) {
Class compClass = ClassUtils.forName(compClassName);
Component comp = (Component) BeanUtils.instantiateClass(compClass);
Class[] endpointClasses = (Class[]) getEndpointClassesMethod.invoke(comp, null);
if (isKnownEndpoint(endpoint, endpointClasses)) {
String name = chooseComponentName(comp);
activateComponent(comp, name);
components.put(name, comp);