Add trigger for java