class NotificationEditorWidget implements IsWidget,
                                                 NotificationEditorWidgetView.Presenter {

    @Override
    public Expiration parseExpiration(String expirationAt, Expiration expiration) {
        if (isEmpty(expirationAt)) {
            return Expiration.TIME_PERIOD;
        }

        if (expiration != null) {
            return expiration;
        }

        return new ExpirationTypeOracle().guess(expirationAt);
    }

    @Inject public  NotificationEditorWidget(NotificationEditorWidgetView view,
                                    ClientTranslationService translationService);

}