class QualitySeverityTransformer {

    public List<QualitySeverityDTO> toDtos(String jsonQualitySeverities) {
        if (StringUtils.isEmpty(jsonQualitySeverities)) {
            return new ArrayList<>();
        }
        try {
            return objectMapper.readValue(jsonQualitySeverities, TYPE_REFERENCE);
        } catch (IOException e) {
            log.error("Cannot parse qualitySeverities: {} - Cause : {}", jsonQualitySeverities, e.getMessage());
            log.debug("Full error : {}", e);
            return new ArrayList<>();
        }
    }

}