code: protected void register() {
          if (providerConfig.isRegister()) {
              List<RegistryConfig> registryConfigs = providerConfig.getRegistry();
              if (registryConfigs != null) {
                  for (RegistryConfig registryConfig : registryConfigs) {
                      Registry registry = RegistryFactory.getRegistry(registryConfig);
                      registry.init();
                      registry.start();
                      try {
                          registry.register(providerConfig);
                      } catch (SofaRpcRuntimeException e) {
                          throw e;
                      } catch (Throwable e) {
                          String appName = providerConfig.getAppName();
                          if (LOGGER.isWarnEnabled(appName)) {
                              LOGGER.warnWithApp(appName, "Catch exception when register to registry: "
                                  + registryConfig.getId(), e);
                          }
                      }
                  }
              }
          }
      }
docs: 注册服务