@Override
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
attributesToProperties(element, "config.", builder);
ElementSelector idSelector = and(sameNs(element), name("id")); // request-contexts:id
ElementSelector storesSelector = and(sameNs(element), name("stores")); // request-contexts:stores
ElementSelector storeMappingsSelector = and(sameNs(element), name("store-mappings")); // request-contexts:store-mappings
ElementSelector sessionModelEncodersSelector = and(sameNs(element), name("session-model-encoders")); // request-contexts:session-model-encoders
ElementSelector sessionInterceptorsSelector = and(sameNs(element), name("interceptors")); // request-contexts:interceptors
for (Element subElement : subElements(element)) {
if (idSelector.accept(subElement)) {
parseId(subElement, parserContext, builder);
} else if (storesSelector.accept(subElement)) {
parseStores(subElement, parserContext, builder);
} else if (storeMappingsSelector.accept(subElement)) {
parseStoreMappings(subElement, parserContext, builder);
} else if (sessionModelEncodersSelector.accept(subElement)) {
parseSessionModelEncoders(subElement, parserContext, builder);
} else if (sessionInterceptorsSelector.accept(subElement)) {
parseSessionInterceptors(subElement, parserContext, builder);
}
}
}