class PunishmentDataProvider {

    public PunishmentData getPunishmentsFor(UUID uuid) {
        return punishmentDataRepository
                .findPunishmentData(uuid)
                .orElseGet(() -> {
                    PunishmentData punishmentData = new PunishmentData(uuid);
                    punishmentDataRepository.save(punishmentData);
                    return punishmentData;
                });
    }

}