Fix for Java File Download for public files