NSUserNotification nsUserNotification = NSUserNotification.CLASS.alloc();
nsUserNotification.setTitle(header);
nsUserNotification.setSubtitle(message);
NSUserNotificationCenter defaultNotificationCenter = NSUserNotificationCenter.CLASS.defaultUserNotificationCenter();
defaultNotificationCenter.setDelegate(defaultNotificationCenter);
defaultNotificationCenter.deliverNotification(nsUserNotification);
} finally {
pool.drain();
}
}