DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.newDocument();
Element root = doc.createElementNS("http://geronimo.apache.org/xml/ns/plugins-1.1", "geronimo-plugin-list");
root.setAttribute("xmlns", "http://geronimo.apache.org/xml/ns/plugins-1.1");
doc.appendChild(root);
List stores = mgr.listStores();
for (int i = 0; i < stores.size(); i++) {
AbstractName name = (AbstractName) stores.get(i);
List configs = mgr.listConfigurations(name);
for (int j = 0; j < configs.size(); j++) {
ConfigurationInfo info = (ConfigurationInfo) configs.get(j);