class NacosRepository implements ConfigurationRepository {

    @Override
    public String get(final String key) {
        try {
            String dataId = pathToKey(key);
            String group = nacosProperties.getValue(NacosPropertyKey.GROUP);
            long timeoutMs = nacosProperties.getValue(NacosPropertyKey.TIMEOUT);
            return configService.getConfig(dataId, group, timeoutMs);
        } catch (final NacosException ex) {
            log.debug("Nacos get config value exception for: {}", ex.toString());
            return null;
        }
    }

}