public void add(String header, String message, boolean allowFocus) {
debugLog.debug(" Showing OS X notification \"{}\", \"{}\"", header, message);
final NSAutoreleasePool pool = NSAutoreleasePool.new_();
try {
NSUserNotification nsUserNotification = NSUserNotification.CLASS.alloc();
nsUserNotification.setTitle(header);
nsUserNotification.setSubtitle(message);
NSUserNotificationCenter defaultNotificationCenter = NSUserNotificationCenter.CLASS.defaultUserNotificationCenter();
defaultNotificationCenter.setDelegate(defaultNotificationCenter);
defaultNotificationCenter.deliverNotification(nsUserNotification);
} finally {