Hi arunpatidar,
Thank you for your reply. Is this solution not deprecated? - I don't know, I just ask you.
I had read the blog post "The deprecation of Sling Resource Events" by Jörg_Hoh and understood from it earlier, that the solution using the ResourceChangeListener is generally recommended...