final Workspace activeWorkspace = Ide.getActiveWorkspace();
for (Object child : activeWorkspace.getListOfChildren()) {
if (child instanceof Reference) {
oracle.ide.model.Node node = ((Reference) child).getData();
if (node instanceof Project) {
final Project project = (Project) node;
// Create a child classloader for the project with the current classloader as parent.
retval = ProjectRunClassPathClassLoaderUtils.getClassLoader(project, retval);
}
}
}