Above API methods are deprecated, you should not be using it.@Reference private ResourceResolverFactory resourceFactory;Map<String,Object> paramMap = new HashMap<String,Object>();//Mention the subServiceName you had used in the User MappingparamMap.put(ResourceResolverFactory.SUBSERVICE, "readServic...