cat.info("Sent reply to IE client"); cat.debug(new String(b64cert));
log.info("Sent reply to IE client"); log.debug(new String(b64cert));
private void sendNewCertToIEClient(byte[] b64cert, OutputStream out) throws Exception {    PrintStream ps = new PrintStream(out);    BufferedReader br = new BufferedReader(new InputStreamReader(getServletContext().getResourceAsStream(getInitParameter("responseTemplate"))));    while ( true ) {        String line=br.readLine();        if ( line==null )            break;        if ( line.indexOf("cert =")<0 )            ps.println(line);        else            RequestHelper.ieCertFormat(b64cert, ps);    }    ps.close();    cat.info("Sent reply to IE client");    cat.debug(new String(b64cert));}