public com.alibaba.dubbo.rpc.Invoker refer(
     java.lang.Class arg0, com.alibaba.dubbo.common.URL arg1) {
   if (arg1 == null) throw new IllegalArgumentException("url == null");
   com.alibaba.dubbo.common.URL url = arg1;
   String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol());
   if (extName == null)
     throw new IllegalStateException(
         "Fail to get extension(com.alibaba.dubbo.rpc.Protocol) name from url("
             + url.toString()
             + ") use keys([protocol])");
   com.alibaba.dubbo.rpc.Protocol extension =
       (com.alibaba.dubbo.rpc.Protocol)
           ExtensionLoader.getExtensionLoader(com.alibaba.dubbo.rpc.Protocol.class)
               .getExtension(extName);
   return extension.refer(arg0, arg1);
 }
 public com.alibaba.dubbo.rpc.Exporter export(com.alibaba.dubbo.rpc.Invoker arg0) {
   if (arg0 == null)
     throw new IllegalArgumentException("com.alibaba.dubbo.rpc.Invoker argument == null");
   if (arg0.getUrl() == null)
     throw new IllegalArgumentException("com.alibaba.dubbo.rpc.Invoker argument getUrl() == null");
   com.alibaba.dubbo.common.URL url = arg0.getUrl();
   String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol());
   if (extName == null)
     throw new IllegalStateException(
         "Fail to get extension(com.alibaba.dubbo.rpc.Protocol) name from url("
             + url.toString()
             + ") use keys([protocol])");
   com.alibaba.dubbo.rpc.Protocol extension =
       (com.alibaba.dubbo.rpc.Protocol)
           ExtensionLoader.getExtensionLoader(com.alibaba.dubbo.rpc.Protocol.class)
               .getExtension(extName);
   return extension.export(arg0);
 }