class SubscriptionMapper {

    public Subscription mapNewSubscriptionFormToSeyren(Subscription subscription) throws CerebroException {

        // Reset unwanted fields or enforced default values
        subscription.setId(null);
        subscription.setType(SubscriptionType.EMAIL);

        setDefaultFromToTimeIfEmptyOrNull(subscription);

        return subscription;
    }

}