request.setDeployedDirectory(moduleRootDirectory);
if(request.getDescription() == null) {
request.setDescription(archiveDeployer.getModuleDescription());
}
// get the descriptor processed by the archiveDeployer
ArchiveDescriptor descriptor = archiveDeployer.prepare(
moduleRootDirectory, getModuleScratchDirectory(moduleName),
parentClassLoader, false);
logger.log(Level.FINE, "Descriptor ="+descriptor.toString());
// register the descriptor with the ModulesManager
configManager.registerExtensionDescriptor(request.getName(),
descriptor);
}