boolean isAbstract = false;
boolean publish = true;
NamedNodeMap atts = element.getAttributes();
String bus = null;
Metadata impl = null;
for (int i = 0; i < atts.getLength(); i++) {
Attr node = (Attr) atts.item(i);
String val = node.getValue();
String pre = node.getPrefix();
String name = node.getLocalName();
if ("createdFromAPI".equals(name) || "abstract".equals(name)) {
cxfBean.setScope(MutableBeanMetadata.SCOPE_PROTOTYPE);
isAbstract = true;
} else if ("publish".equals(name)) {
publish = Boolean.parseBoolean(val);
} else if ("bus".equals(name)) {
bus = val;
} else if (isAttribute(pre, name)) {
if ("endpointName".equals(name) || "serviceName".equals(name)) {
QName q = parseQName(element, val);
cxfBean.addProperty(name, createValue(context, q));
} else if ("depends-on".equals(name)) {
cxfBean.addDependsOn(val);
} else if ("implementor".equals(name)) {
if (val.startsWith("#")) {
impl = createRef(context, val.substring(1));
} else {
impl = createObjectOfClass(context, val);
}
} else if (!"name".equals(name)) {
cxfBean.addProperty(name, createValue(context, val));
}
}
}
Element elem = DOMUtils.getFirstElement(element);
while (elem != null) {
String name = elem.getLocalName();
if ("properties".equals(name)) {
Metadata map = parseMapData(context, cxfBean, elem);
cxfBean.addProperty(name, map);
} else if ("binding".equals(name)) {
setFirstChildAsProperty(elem, context, cxfBean, "bindingConfig");
} else if ("inInterceptors".equals(name)
|| "inFaultInterceptors".equals(name)
|| "outInterceptors".equals(name)
|| "outFaultInterceptors".equals(name)
|| "features".equals(name)
|| "schemaLocations".equals(name)
|| "handlers".equals(name)) {
Metadata list = parseListData(context, cxfBean, elem);
cxfBean.addProperty(name, list);
} else if ("implementor".equals(name)) {
impl = context.parseElement(Metadata.class, cxfBean, elem);
} else {
setFirstChildAsProperty(elem, context, cxfBean, name);