toLocalFile now simply returns the url as file. If this is not possible the client of this method should ahndle it. At this level nothing better can be done