Obviously this class is not capable of loading resources. There's nothing you can do except extending the class (if possible).
Loading the resource and saving it to a temporary file would be a solution, but it's simply not worth it.