for(final ModuleIdentifier identifier : additionalModule.getAnnotationModules()) {
//additional modules don't support annotation imports
ServerLogger.DEPLOYMENT_LOGGER.annotationImportIgnored(identifier, additionalModule.getModuleIdentifier());
}
final AdditionalModuleSpecification additional = new AdditionalModuleSpecification(additionalModule .getModuleIdentifier(), additionalModule.getResourceRoots());
additional.addAliases(additionalModule.getAliases());
additional.addSystemDependencies(additionalModule.getModuleDependencies());
deploymentUnit.addToAttachmentList(Attachments.ADDITIONAL_MODULES, additional);
for(final ResourceRoot root: additionalModule.getResourceRoots()) {
ResourceRootIndexer.indexResourceRoot(root);
}
}