BeanDefinitionParser parser = parserMap.get(localName);
if (parser != null) {
BeanDefinition definition = parser.parse(childElement, parserContext);
String id = childElement.getAttribute("id");
if (ObjectHelper.isNotEmpty(id)) {
parserContext.registerComponent(new BeanComponentDefinition(definition, id));
// set the templates with the camel context
if (localName.equals("template") || localName.equals("consumerTemplate")
|| localName.equals("proxy") || localName.equals("export")) {
// set the camel context
definition.getPropertyValues().addPropertyValue("camelContext", new RuntimeBeanReference(contextId));