if (rank != null && rank.length() > 0) {
bean.addProperty("rank", createValue(context, rank));
}
NodeList childElements = element.getElementsByTagNameNS(element.getNamespaceURI(), "module");
if (childElements != null && childElements.getLength() > 0) {
MutableCollectionMetadata children = context.createMetadata(MutableCollectionMetadata.class);
for (int i = 0; i < childElements.getLength(); ++i) {
Element childElement = (Element) childElements.item(i);
MutableBeanMetadata md = context.createMetadata(MutableBeanMetadata.class);
md.setRuntimeClass(Module.class);
md.addProperty("className", createValue(context, childElement.getAttribute("className")));
if (childElement.getAttribute("name") != null) {
md.addProperty("name", createValue(context, childElement.getAttribute("name")));
}
if (childElement.getAttribute("flags") != null) {
md.addProperty("flags", createValue(context, childElement.getAttribute("flags")));
}
String options = getTextValue(childElement);
if (options != null && options.length() > 0) {
md.addProperty("options", createValue(context, options));
}
children.addValue(md);
}
bean.addProperty("modules", children);
}
// Publish Config
MutableServiceMetadata service = context.createMetadata(MutableServiceMetadata.class);