Implementation of review comments for classpath and jar

resourceFactories
Need to test this. But it doesnt impact the sample application.