List newentries = new ArrayList();
boolean emmartinserted = false;
for (int i = 0; i < entries.length; i++) {
if (entries[i].getClasspathProperty() == IRuntimeClasspathEntry.USER_CLASSES) {
TRACER.trace("Resolved classpath entry: {0}", entries[i].getLocation()); //$NON-NLS-1$
IInstrumentation instr = info.getInstrumentation(entries[i].getLocation());
if (instr != null) {
TRACER.trace("Found instrumented classes for {0}", entries[i].getLocation()); //$NON-NLS-1$
if (!emmartinserted) {
addEmmaRuntime(info, newentries);
emmartinserted = true;
}
if (!instr.isInplace()) {
newentries.add(JavaRuntime.newArchiveRuntimeClasspathEntry(instr.getOutputLocation()));
}
}
}
newentries.add(entries[i]);
}