code: @Override
      public void write(File dest) {
          if (origin instanceof FileOrigin) {
              File target = getOutputFile(dest);
  
              FileOrigin fo = (FileOrigin) origin;
              if (target.exists() && target.length() == fo.getLength()
                      && target.lastModified() >= fo.getLastModified()) {
                  //log.debug("Target file is newer than source file, skip copying.");
                  return;
              }
              try {
                  File parentFile = target.getParentFile();
                  if (!parentFile.exists()) {
                      parentFile.mkdirs();
                  }
  
                  log.debug("Copying static file to " + target);
                  FileUtils.copyFile(fo.getFile(), target);
              } catch (IOException e) {
                  log.error("Copying static file error: " + target, e);
                  throw new RuntimeException(e);
              }
          } else {
              log.warn("Origin not support yet: " + origin);
          }
      }
docs: /* (non-Javadoc)
  @see org.opoo.press.StaticFile#write(java.io.File)