Set download filename for java sample.