* module should obviously be dependent on the other and it's not
* clear that this belongs in geronimo-common
*/
public static Map mapContainersToURLs(Kernel kernel) throws Exception {
Map containers = new HashMap();
Set set = kernel.listGBeans(new GBeanQuery(null, "org.apache.geronimo.management.geronimo.WebManager"));
for (Iterator it = set.iterator(); it.hasNext();) {
ObjectName mgrName = (ObjectName) it.next();
String[] cntNames = (String[]) kernel.getAttribute(mgrName, "containers");
for (int i = 0; i < cntNames.length; i++) {
String cntName = cntNames[i];