File or Url.getRawPath() became problematic if they are read in from the jars from the classpath and which couldn't resolve to a physical File.
a. Suggestion: Wherever possible, replace loading of resouces via java.io.File with InputStream instead. . We can add a new method in the FileLocator util and deprecate the old File method.