class RuleNameServiceImpl implements RuleNamesService {

    @Override
    public Collection<String> getRuleNames(final Path path,
                                           final String packageName) {
        final Module module = moduleService.resolveModule(path);

        if (module == null) {
            return Collections.emptyList();
        } else {
            return queryRuleNames(
                    packageName,
                    module.getRootPath().toURI());
        }
    }

    public  RuleNameServiceImpl();
    @Inject public  RuleNameServiceImpl(final RefactoringQueryService queryService,
                               final KieModuleService moduleService);

}