Iterator itAddressSpace;
Iterator itProcess;
Iterator itRuntime;
ManagedRuntime mr;
ImageAddressSpace ias;
ImageProcess ip;
itAddressSpace = loadedImage.getAddressSpaces().iterator();
while (itAddressSpace.hasNext()) {
ias = (ImageAddressSpace)itAddressSpace.next();
itProcess = ias.getProcesses().iterator();
while (itProcess.hasNext())
{
ip = (ImageProcess)itProcess.next();
itRuntime = ip.getRuntimes().iterator();
while (itRuntime.hasNext()) {
// this iterator can contain ManagedRuntime or CorruptData objects
Object next = itRuntime.next();
if (next instanceof CorruptData) {
continue; // skip any CorruptData objects