code: public S setRegistry(RegistryConfig registry) {
          if (this.registry == null) {
              this.registry = new ArrayList<RegistryConfig>();
          }
          this.registry.add(registry);
          return castThis();
      }
docs: 设置注册中心
  
  @param registry RegistryConfig
  @return the registry