IModule workingModule = module[module.length - 1];
modulePath = modulePath.append(workingModule.getName());
if (GeronimoUtils.isWebModule(workingModule)) {
modulePath = modulePath.addFileExtension("war");
} else if (GeronimoUtils.isEjbJarModule(workingModule)) {
modulePath = modulePath.addFileExtension("jar");
} else if (GeronimoUtils.isRARModule(workingModule)) {
modulePath = modulePath.addFileExtension("rar");
} else if (GeronimoUtils.isEarModule(workingModule)) {
modulePath = modulePath.addFileExtension("ear");
} else if (GeronimoUtils.isAppClientModule(workingModule)) {