@Override
 public void notify(Notification notification) {
   mailAbstraction.send(
       properties,
       notification.getSubject(),
       notification.getMessage(),
       notification.getRecipient());
 }
 @Override
 public AliveState getAliveState() {
   AliveState aliveState = mailAbstraction.getAliveState();
   if (aliveState == null) {
     return AliveState.OFFLINE;
   }
   return aliveState;
 }
 public EmailNotifier(String id, MailAbstraction mailAbstraction) {
   this.id = id;
   this.mailAbstraction = mailAbstraction;
   properties = mailAbstraction.createMailProperties();
 }