The method FileLocator.resolve(url)
can be used to translate an address bundleentry://something/somewhere/x.txt
to a proper file URL for /mnt/foo
Two additional notes:
URI resolvedUri = URI.createFileURI(resolved.getPath());
To get the file name, call resolvedUri.toFileString();