PropertyList list = new PropertyList("classloaders");
info.getComplexResults().put(numClassLoaders);
info.getComplexResults().put(list);
for (Entry<CanonicalResourceKey, ClassLoader> entry : classloaders.entrySet()) {
CanonicalResourceKey canonicalId = entry.getKey();
ClassLoader classloader = entry.getValue();
String[] data = canonicalIdMap.get(canonicalId);
PropertyMap map = new PropertyMap("classloader");
map.put(new PropertySimple("resourceName", data[0]));
map.put(new PropertySimple("resourceId", data[1]));
map.put(new PropertySimple("resourceUuid", data[2]));
map.put(new PropertySimple("canonicalId", canonicalId.toString()));
map.put(new PropertySimple("classloaderInfo", classloader));
list.add(map);
}
classloaders.clear(); // don't need this shallow copy anymore, help the GC clean up