/**
   * This method does the copy or move the folder or document into another folder. User should be on
   * RepositoryPage Page.
   *
   * @param isCopy
   * @param testFolderName
   * @param copyFolderName
   * @param docLibPage
   * @return CopyOrMoveContentPage
   */
  public static CopyOrMoveContentPage copyOrMoveToFolderInRepository(
      WebDrone drone, String sourceFolder, String[] destinationFolders, boolean isCopy) {
    if ((StringUtils.isEmpty(sourceFolder)) || (destinationFolders.length == 0)) {
      throw new IllegalArgumentException(
          "sitename/sourceFolder/destinationFolders should not be empty or null");
    }

    CopyOrMoveContentPage copyOrMoveContentPage;

    FileDirectoryInfo contentRow = ShareUserSitePage.getFileDirectoryInfo(drone, sourceFolder);
    if (isCopy) {
      copyOrMoveContentPage = contentRow.selectCopyTo().render();
    } else {
      copyOrMoveContentPage = contentRow.selectMoveTo().render();
    }
    copyOrMoveContentPage = copyOrMoveContentPage.selectDestination(REPO).render();
    copyOrMoveContentPage = copyOrMoveContentPage.selectPath(destinationFolders).render();
    return copyOrMoveContentPage;
  }