InputStream is = file.getInputStream();
IOUtils.copy(file.getInputStream(), os);
IOUtils.closeQuietly(os);
IOUtils.closeQuietly(is);
// Display timing informations
sw.stop();
if (displayInfo) {
System.out.println("COPY");
System.out.printf(" IN : %s\n", file.getPath());
System.out.printf(" OUT : %s\n", localTargetDirectory + "/" + file.getName());
System.out.printf(" DELAY : %s\n", sw.getTime());