private String getDesc(final File patchFile) { try { StringWriter sw = new StringWriter(); FileReader fr = new FileReader(patchFile); IOUtil.copy(fr, sw); IOUtil.shutdownReader(fr); return sw.toString(); } catch (FileNotFoundException e) { final String message = "Could not find patch file : " + patchFile; log.error(message, e); return message; } catch (IOException e) { final String message = "Could not read patch file : " + patchFile; log.error(message, e); return message; } }