class RdsConfigService extends AbstractWorkspaceAwareResourceService<RDSConfig> {

    public void deleteDefaultRdsConfigs(Set<RDSConfig> rdsConfigs) {
        Map<String, String> mdcContextMap = MDCBuilder.getMdcContextMap();
        rdsConfigs.stream()
                .filter(rdsConfig -> ResourceStatus.DEFAULT == rdsConfig.getStatus())
                .forEach(this::delete);
        MDCBuilder.buildMdcContextFromMap(mdcContextMap);
    }

}