class EmailNotificationService implements NotificationService {

    @Override
    public boolean notify(Notification notification) {
        if (notification == null) {
            return false;
        }

        NotificationEmail notificationAsEmail = notification.getNotificationAsEmail();

        if (notificationAsEmail == null) {
            return false;
        }

        final String subject = notificationAsEmail.getSubject();
        final String body = notificationAsEmail.getBody();
        Set<String> recipients = notificationAsEmail.getFullyQualifiedRecipientsEmail();
        return sendEmail(recipients, subject, body);
    }

    public  EmailNotificationService(EmailProvider emailProvider);

}