ResourceResolverFactory is like any other service that is available in OSGI framework. It's most frequent use is accessing resource resolver. You can see its detailed use in your felix console, /system/console/configMgr. Search for "Apache Sling Resource Resolver Factory".Now, coming to your second...