try
for(String line: lines)
    public void dumpReply(OutputStream out)    {        try        {            for(String line: lines)            {                out.write(line.getBytes());            }        }catch (IOException ioe)        {            log.error("Couldn't dump reply",ioe);        }    }