Name packageName = environment.getStagePackageName(stageBlock.getStageNumber());
this.importer = new ImportBuilder(
factory,
factory.newPackageDeclaration(packageName),
ImportBuilder.Strategy.TOP_LEVEL);
this.names = new NameGenerator(factory);
this.collector = names.create("collector");
this.keyType = importer.toType(keyTypeName);
this.valueType = importer.toType(valueTypeName);
this.keyModel = names.create("key");
this.valueModel = names.create("value");