code: protected static PatchElement createPatchElement(final PatchEntry entry, String patchId, final List<ContentModification> modifications) {
          final PatchElement patchElement = entry.element;
          final PatchElementImpl element = new PatchElementImpl(patchId);
          element.setProvider(patchElement.getProvider());
          // Add all the rollback actions
          element.getModifications().addAll(modifications);
          element.setDescription(patchElement.getDescription());
          return element;
      }
docs: Copy a patch element
  
  @param entry         the patch entry
  @param patchId       the patch id for the element
  @param modifications the element modifications
  @return the new patch element