creating a file from managed bean.