class KieModuleServiceImpl extends AbstractModuleService<KieModule> implements KieModuleFactory,
                   org.kie.workbench.common.services.shared.project.KieModuleService {

    @Override
    public KieModulePackages resolveModulePackages(Module activeModule) {
        final HashSet<PackageItem> packages = new HashSet<>();

        packages.add(new PackageItem("",
                                     PackageItem.DEFAULT_PACKAGE_NAME));

        for (final String packageName : packageServiceLoader.find(activeModule.getRootPath())) {
            final StringBuilder packageBuilder = new StringBuilder();
            for (final String token : packageName.split("\\.")) {
                if (packageBuilder.length() != 0) {
                    packageBuilder.append(".");
                }
                packageBuilder.append(token);

                packages.add(new PackageItem(packageBuilder.toString(),
                                             packageBuilder.toString()));
            }
        }

        return new KieModulePackages(packages,
                                     resolveDefaultWorkspacePackage(activeModule));
    }

    public  KieModuleServiceImpl();
    @Inject public  KieModuleServiceImpl(final @Named("ioStrategy") IOService ioService,
                                final ModuleSaver moduleSaver,
                                final POMService pomService,
                                final RepositoryService repoService,
                                final Event<NewModuleEvent> newModuleEvent,
                                final Event<NewPackageEvent> newPackageEvent,
                                final Event<InvalidateDMOModuleCacheEvent> invalidateDMOCache,
                                final SessionInfo sessionInfo,
                                final CommentedOptionFactory commentedOptionFactory,
                                final ModuleFinder moduleFinder,
                                final PackageServiceLoader packageServiceLoader,
                                final KieResourceResolver resourceResolver,
                                final ModuleRepositoryResolver repositoryResolver);

}