* Registers the given component definition with this {@link BeansConfig}'s beans and component storage.
*/
private void registerComponentDefinition(ComponentDefinition componentDefinition,
Map<String, IModelElementProvider> elementProviders) {
String uri = NamespaceUtils.getNameSpaceURI(componentDefinition);
IModelElementProvider provider = elementProviders.get(uri);
if (provider == null) {
provider = BeansConfig.DEFAULT_ELEMENT_PROVIDER;
}
ISourceModelElement element = provider.getElement(BeansJavaConfig.this, componentDefinition);
if (element instanceof IBean) {
beans.put(element.getElementName(), (IBean) element);
}
else if (element instanceof IBeansComponent) {
components.add((IBeansComponent) element);