class AlarmMapper {

    public Alarm mapUpdateAlarmFormToSeyren(final Alarm updatedAlarm) throws CerebroException {
        alarmValidator.validateAlarm(updatedAlarm);
        updateSourcesToBackend(updatedAlarm);

        updatedAlarm.getSubscriptions().forEach(subscription -> subscriptionMapper.mapUpdateSubscriptionFormToSeyren(subscription));

        return updatedAlarm;
    }

}