Map<String, Object> param = new HashMap<>();param.put(ResourceResolverFactory.SUBSERVICE, "yourservice");try (ResourceResolver resolver = resourceResolverFactory.getServiceResourceResolver(param)) {Resource res = resolver.getResource("resource path");ValueMap pageProperties = resource.getValueMap();...