private String createWorkflowStepForRecreateReplicationSet(Workflow workflow,ProtectionSystem rpSystem,List<Volume> vplexVolumes,String waitFor){
  List<URI> vplexVolumeURIs=new ArrayList<>();
  Map<String,RecreateReplicationSetRequestParams> params=getRecreateReplicationSetParams(rpSystem,vplexVolumes,vplexVolumeURIs);
  Workflow.Method executeMethod=new Workflow.Method(RPDeviceController.METHOD_RECREATE_RSET_STEP,rpSystem.getId(),vplexVolumeURIs,params);
  workflow.createStep(RPDeviceController.STEP_POST_VOLUME_RESTORE,"Recreate RP replication set step for snapshot session restore",waitFor,rpSystem.getId(),rpSystem.getSystemType(),RPDeviceController.class,executeMethod,rollbackMethodNullMethod(),null);
  return RPDeviceController.STEP_POST_VOLUME_RESTORE;
}

private String createWorkflowStepForRecreateReplicationSet ( Workflow workflow , ProtectionSystem rpSystem , List < Volume > vplexVolumes , String waitFor ) { List < URI > vplexVolumeURIs = new ArrayList < > ( ) ; Map < String , RecreateReplicationSetRequestParams > params = getRecreateReplicationSetParams ( rpSystem , vplexVolumes , vplexVolumeURIs ) ; Workflow . Method executeMethod = new Workflow . Method ( RPDeviceController . METHOD_RECREATE_RSET_STEP , rpSystem . getId ( ) , vplexVolumeURIs , params ) ; workflow . createStep ( RPDeviceController . STEP_POST_VOLUME_RESTORE , "Recreate RP replication set step for snapshot session restore" , waitFor , rpSystem . getId ( ) , rpSystem . getSystemType ( ) , RPDeviceController . class , executeMethod , rollbackMethodNullMethod ( ) , null ) ; return RPDeviceController . STEP_POST_VOLUME_RESTORE ; }
create a step in the passed workflow that will recreate the rp replication set during a snapshot session restore after the remote mirrors have been reattached and the distributed vplex volumes are added back to their consistency group .
