}
IResource folder = project.getFolder(newSource);
if (newSourcePosition > refPosition) {
component.getResources().move(newSourcePosition, refPosition);
} else if (newSourcePosition < 0) {
ComponentResource componentResource = moduleCore.createWorkbenchModuleResource(folder);
componentResource.setRuntimePath(runtimePath);
component.getResources().add(refPosition,componentResource);
}
}
finally {
if (moduleCore != null) {