Added java support for new notification handling.

#PLAT-635
#time 2d.