if ("bus".equals(s)) {
//parse bus
return new BusDefinitionParser().parse(element, context);
} else if ("logging".equals(s)) {
//logging feature
return new SimpleBPBeanDefinitionParser(LoggingFeature.class).parse(element, context);
} else if ("fastinfoset".equals(s)) {
//fastinfosetfeature
return new SimpleBPBeanDefinitionParser(FastInfosetFeature.class).parse(element, context);
} else if ("workqueue".equals(s)) {
//fastinfosetfeature
return new SimpleBPBeanDefinitionParser(AutomaticWorkQueueImpl.class) {
public String getId(Element element, ParserContext context) {
String id = element.hasAttribute("id") ? element.getAttribute("id") : null;
if (id == null) {
id = "cxf.workqueue.";
id += element.hasAttribute("name") ? element.getAttribute("name") : "def";