Done. Currently I am getting the resourceResolver object from the resourceResolverFactory Service inside the API class itself. Or should I pass it in the API from the caller? What do you suggest?