class DataSourceConfigurationYamlSwapper implements YamlSwapper<YamlDataSourceConfiguration, DataSourceConfiguration> {

    @Override
    public YamlDataSourceConfiguration swapToYamlConfiguration(final DataSourceConfiguration config) {
        YamlDataSourceConfiguration result = new YamlDataSourceConfiguration();
        result.setDataSourceClassName(config.getDataSourceClassName());
        result.setProps(config.getProps());
        return result;
    }

}