@Override
    public T refer() {
        Class enclosingClass = this.getConsumerConfig().getProxyClass().getEnclosingClass();
        Method sofaStub = null;
        String serviceName = this.getConsumerConfig().getInterfaceId();
        try {
            sofaStub = enclosingClass.getDeclaredMethod("getServiceName");
            serviceName = (String) sofaStub.invoke(null);
        } catch (Throwable e) {
            //ignore
        }

        this.getConsumerConfig().setVirtualInterfaceId(serviceName);
        return super.refer();
    }
Consumer bootstrap for tri

@author <a href=mailto:yqluan@gmail.com>Yanqiang Oliver Luan (neokidd)</a>
bootstrap/bootstrap-triple/src/main/java/com/alipay/sofa/rpc/bootstrap/triple/TripleConsumerBootstrap.java