in shardingsphere-ui-backend/src/main/java/org/apache/shardingsphere/ui/servcie/impl/RegistryCenterServiceImpl.java [41:47]
public RegistryCenterRepository getActivatedRegistryCenter() {
Optional<CenterConfig> optional = centerConfigService.loadActivated();
if (optional.isPresent()) {
return CenterRepositoryFactory.createRegistryRepository(optional.get());
}
throw new ShardingSphereUIException(ShardingSphereUIException.SERVER_ERROR, "No activated registry center!");
}