return this;
}
private Map<String, TypeDeclaration> addTypeDeclarationClassesToTrg() {
Map<String, TypeDeclaration> typeDeclarations = new HashMap<String, TypeDeclaration>();
KieModuleModel kieModuleModel = kModule.getKieModuleModel();
for (String kieBaseNames : kieModuleModel.getKieBaseModels().keySet()) {
KnowledgeBuilderImpl kBuilder = (KnowledgeBuilderImpl)kModule.getKnowledgeBuilderForKieBase(kieBaseNames);
Map<String, PackageRegistry> pkgRegistryMap = kBuilder.getPackageBuilder().getPackageRegistry();
for (KiePackage kPkg : kBuilder.getKnowledgePackages()) {
PackageRegistry pkgRegistry = pkgRegistryMap.get(kPkg.getName());