[BZ-1005204] recognize an event also when using java annotation