Hi @milind_bachani ,thank you for your reply.I'am looking for a solution in which I don't need to perform resource setter by my hand.If you take the same code that you have posted, and you remove this line:"simpleModel.currentResource = resource;" and change the @Inject annotation with @SlingObject ...