Take current threads contextClassLoader for resource loading, which is more flexible