class ModulesService {

    public boolean moduleHaveInstance(String moduleName) {
        Application application = discoveryClient.getApplication(moduleName.concat("-service").toUpperCase());
        return application != null && !application.getInstances().isEmpty();
    }

    public  ModulesService(EurekaClient discoveryClient);

}