I am using Spring\'s PathMatchingResourcePatternResolver class to load resources dynamically from jar.
Sample code :
String RESOURCE_CLASS