public static void writeOutContent(final byte[] data, final String filename, final String mime) {
        writeOutContent(data, filename, mime, true);
    }
public static void writeOutContent ( final byte [ ] data , final String filename , final String mime ) { writeOutContent ( data , filename , mime , true ) ; }
Used to send arbitrary data to the user (i.e. to download files)

@param data     The contents of the file
@param filename The name of the file to send to the browser
@param mime     The MIME type of the file