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 ; }
Copy a patch element