private void updateIncreaseCapability(
     IncreaseCapability increaseCapability, IncreaseCapabilityDto increaseCapabilityDto) {
   increaseCapability.setMaxDtus(increaseCapabilityDto.getMaxDtus());
   increaseCapability.setPowerStep(increaseCapabilityDto.getPowerStep());
   increaseCapability.setMaxPower(increaseCapabilityDto.getMaxPower());
   increaseCapability.setDurationMultiplier(increaseCapabilityDto.getDurationMultiplier());
   LOGGER.debug("Updated increase-capability with id [{}] ", increaseCapabilityDto.getId());
 }
 private IncreaseCapability createIncreaseCapability(
     IncreaseCapabilityDto increaseCapabilityDto, UdiEvent udiEvent) {
   IncreaseCapability increaseCapability = new IncreaseCapability();
   increaseCapability.setId(getDeviceCapabilityId(increaseCapabilityDto));
   increaseCapability.setMaxDtus(increaseCapabilityDto.getMaxDtus());
   increaseCapability.setPowerStep(increaseCapabilityDto.getPowerStep());
   increaseCapability.setMaxPower(increaseCapabilityDto.getMaxPower());
   increaseCapability.setDurationMultiplier(increaseCapabilityDto.getDurationMultiplier());
   increaseCapability.setConsumptionProductionType(
       UdiEventTransformer.transformToModel(increaseCapabilityDto.getConsumptionProductionType()));
   increaseCapability.setUdiEvent(udiEvent);
   increaseCapabilityRepository.persist(increaseCapability);
   LOGGER.debug(
       "Created new increase-capability with id [{}] for event with id [{}]",
       increaseCapabilityDto.getId(),
       udiEvent.getId());
   return increaseCapability;
 }