Java template improvements

Change-Id: Ia5019c1763f5e2d98d7329b97f0cc4724b5d292c
Add parentProperties por events

Change-Id: I0bc3bc2f80044730e5f884d2b6bfac60d4c14bb6