Source:
private void parseGeneratedSources(ModelBuilder modelBuilder) throws IOException { modelBuilder.parsedTypes = Collections.emptyMap(); String moduleImplementationName = Generator.readServiceFile(filer()); if (moduleImplementationName == null) { return; } Map.Entry<String, Set<String>> moduleClassAndPackages = Generator.readModuleClass(filer(), moduleImplementationName); if (moduleClassAndPackages == null) { info(null, "Ignoring removed or renamed module implementation %s", moduleImplementationName); return; } TypeElement moduleClassElement = elements().getTypeElement(moduleClassAndPackages.getKey()); InfinispanModule moduleAnnotation = moduleClassElement != null ? getAnnotation(moduleClassElement, InfinispanModule.class) : null; if (moduleAnnotation == null) { info(null, "Ignoring invalid module implementation %s", moduleImplementationName); return; } String classPrefix = moduleToClassPrefix(moduleAnnotation.name()); Set<String> packages = moduleClassAndPackages.getValue(); Map<String, Model.ParsedType> parsedTypes = new HashMap<>(); for (String packageName : packages) { Map<String, List<String>> packageSources = Generator.readPackageClass(filer(), packageName, classPrefix); if (packageSources == null) { info(null, "Ignoring removed or renamed package implementation %s", packageName); continue; } packageSources.forEach((qualifiedName, code) -> { TypeElement sourceType = elements().getTypeElement(qualifiedName); if (sourceType == null) { info( null, "Ignoring removed component class %s", qualifiedName); } else { parsedTypes.put(qualifiedName, new Model.ParsedType(sourceType, qualifiedName, packageName, code)); } }); } modelBuilder.parsedTypes = parsedTypes; modelBuilder.setModuleClass(moduleClassElement, moduleAnnotation, classPrefix); }

Target:
private void parseGeneratedSources(ModelBuilder modelBuilder) throws IOException { modelBuilder.parsedTypes = Collections.emptyMap(); String moduleImplementationName = Generator.readServiceFile(filer()); if (moduleImplementationName == null) { return; } Map.Entry<String, Set<String>> moduleClassAndPackages = Generator.readModuleClass(filer(), moduleImplementationName); if (moduleClassAndPackages == null) { info(null, "Ignoring removed or renamed module implementation %s", moduleImplementationName); return; } TypeElement moduleClassElement = elements().getTypeElement(moduleClassAndPackages.getKey()); InfinispanModule moduleAnnotation = moduleClassElement != null ? getAnnotation(moduleClassElement, InfinispanModule.class) : null; if (moduleAnnotation == null) { error(null, "Ignoring invalid module implementation %s", moduleImplementationName); return; } String classPrefix = moduleToClassPrefix(moduleAnnotation.name()); Set<String> packages = moduleClassAndPackages.getValue(); Map<String, Model.ParsedType> parsedTypes = new HashMap<>(); for (String packageName : packages) { Map<String, List<String>> packageSources = Generator.readPackageClass(filer(), packageName, classPrefix); if (packageSources == null) { info(null, "Ignoring removed or renamed package implementation %s", packageName); continue; } packageSources.forEach((qualifiedName, code) -> { TypeElement sourceType = elements().getTypeElement(qualifiedName); if (sourceType == null) { info( null, "Ignoring removed component class %s", qualifiedName); } else { parsedTypes.put(qualifiedName, new Model.ParsedType(sourceType, qualifiedName, packageName, code)); } }); } modelBuilder.parsedTypes = parsedTypes; modelBuilder.setModuleClass(moduleClassElement, moduleAnnotation, classPrefix); }