@Override
    public PropertySource<?> locate(final Environment environment) {
        val props = new Properties();

        try {
            val connection = new JdbcCloudConnection(environment);
            val dataSource = JpaBeans.newDataSource(connection);
            val jdbcTemplate = new JdbcTemplate(dataSource);
            val rows = jdbcTemplate.queryForList(connection.getSql());
            props.putAll(rows
                .stream()
                .collect(Collectors.toMap(row -> row.get("name"), row -> row.get("value"), (a, b) -> b, Properties::new)));
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        }
        return new PropertiesPropertySource(getClass().getSimpleName(), props);
    }
This is {@link CasJdbcCloudConfigBootstrapAutoConfiguration}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-configuration-cloud-jdbc/src/main/java/org/apereo/cas/config/CasJdbcCloudConfigBootstrapAutoConfiguration.java