/** {@inheritDoc} * * We call the parent method for the custom schema (which is expected to not do anything special * with the <beans> statement) and then we call again to handle the beans statements which * we have explicitly pulled out. * */ @Override public void registerBeanDefinitions(final Document doc, final XmlReaderContext readerContext) throws BeanDefinitionStoreException { super.registerBeanDefinitions(doc, readerContext); final List<Element> beans = ElementSupport.getChildElements(doc.getDocumentElement(), new QName(BeanDefinitionParserDelegate.BEANS_NAMESPACE_URI, NESTED_BEANS_ELEMENT)); if (beans.isEmpty()) { return; } for (final Element elem : beans) { doRegisterBeanDefinitions(elem); } } }