if (isDeploy) {
// If this is deployment scenario, we should process JavaEE
// annotations and all deployment descriptors should be loaded
// from module root directory
archive.open(moduleRootDirectory.getAbsolutePath());
Archivist moduleArchivist =
ArchivistFactory.getArchivistForArchive(archive);
moduleArchivist.setAnnotationProcessingRequested(true);
moduleArchivist.setClassLoader(moduleClassLoader);
return ApplicationArchivist.openArchive(moduleArchivist,