class ListNamingService implements NamingService {

    @Override
    public List<ServiceInstance> lookup(SubscribeInfo subscribeInfo) {
        for (ServiceInstance instance : instances) {
            if (subscribeInfo != null && StringUtils.isNoneBlank(subscribeInfo.getServiceId())) {
                instance.setServiceName(subscribeInfo.getServiceId());
            }
        }
        return instances;
    }

    public  ListNamingService(BrpcURL namingUrl);

}