}
private static IModuleResource processModuleResource(IModuleResource or) {
if (or instanceof IModuleFolder) {
IModuleFolder of = (IModuleFolder) or;
IPath p = of.getModuleRelativePath();
if (p.isAbsolute()) {
p = p.makeRelative();
}
ModuleFolder nf = new ModuleFolder(null, of.getName(), p);
List<IModuleResource> c = new ArrayList<IModuleResource>();
for (IModuleResource mc : of.members()) {
c.add(processModuleResource(mc));
}
nf.setMembers(c.toArray(new IModuleResource[0]));
return nf;
}