code: protected File renameFile(File localFile) throws IOException {
          File origFile = new File(localFile.getAbsolutePath());
          File copiedFile = new File(localFile.getParent(),
                                     localFile.getName() + COPY);
          for (int i = 2; copiedFile.exists(); i++) {
              copiedFile = new File(localFile.getParent(),
                                    localFile.getName() + COPY + "-" + i);
          }
          FileUtils.moveFile(origFile, copiedFile);
          return copiedFile;
      }
docs: /*
  Renames the given file, returns the copied file. Does not change
  the original passed in file path.