newElement.setRemove( element.getRemove() );
holder.getTablesDialog().setBooleanValue( MutationTables.REMOVE_FILE, element.getRemove() );
for( MaliciousAttachmentConfig el : element.getGenerateAttachmentList() )
{
MaliciousAttachmentConfig newEl = newElement.addNewGenerateAttachment();
newEl.setFilename( el.getFilename() );
newEl.setSize( el.getSize() );
newEl.setContentType( el.getContentType() );
newEl.setEnabled( el.getEnabled() );
newEl.setCached( el.getCached() );
holder.addResultToGenerateTable( newEl );
}
for( MaliciousAttachmentConfig el : element.getReplaceAttachmentList() )
{
MaliciousAttachmentConfig newEl = newElement.addNewReplaceAttachment();
newEl.setFilename( el.getFilename() );
newEl.setSize( el.getSize() );
newEl.setContentType( el.getContentType() );
newEl.setEnabled( el.getEnabled() );
newEl.setCached( el.getCached() );
holder.addResultToReplaceTable( newEl );
}
holder.refresh( attEl, null );