public ClusterConfiguration get(String alias) {
return jdbcTemplate.queryForObject(queriesProperties.getProperty("clusterconfig.get.by.alias"), new MapSqlParameterSource("alias", alias), new ClusterConfigurationMapper());
}
public ClusterConfiguration getActive() {
List<ClusterConfiguration> configuration = jdbcTemplate.query(queriesProperties.getProperty("clusterconfig.select.star.wa"), new MapSqlParameterSource("active", true), new ClusterConfigurationMapper());
//tutaj zrobic inaczej
//jesli defaultConn nie jest pusty to dodaj config nadpisujac
if (CollectionUtils.isEmpty(configuration)) {
this.createDefaultConfiguration();