private String createWorkflowStepForRestoreNativeSnapshot(Workflow workflow,StorageSystem parentSystem,URI parentVolumeURI,URI snapshotURI,URI parentPoolURI,String waitFor,Workflow.Method rollbackMethod){
  URI parentSystemURI=parentSystem.getId();
  Workflow.Method restoreVolumeMethod=new Workflow.Method(RESTORE_VOLUME_METHOD_NAME,parentSystemURI,parentPoolURI,parentVolumeURI,snapshotURI,Boolean.FALSE,null);
  workflow.createStep(RESTORE_VOLUME_STEP,String.format("Restore VPLEX backend volume %s from snapshot %s",parentVolumeURI,snapshotURI),waitFor,parentSystemURI,parentSystem.getSystemType(),BlockDeviceController.class,restoreVolumeMethod,rollbackMethod,null);
  _log.info("Created workflow step to restore VPLEX backend volume {} from snapshot {}",parentVolumeURI,snapshotURI);
  return RESTORE_VOLUME_STEP;
}

private String createWorkflowStepForRestoreNativeSnapshot ( Workflow workflow , StorageSystem parentSystem , URI parentVolumeURI , URI snapshotURI , URI parentPoolURI , String waitFor , Workflow . Method rollbackMethod ) { URI parentSystemURI = parentSystem . getId ( ) ; Workflow . Method restoreVolumeMethod = new Workflow . Method ( RESTORE_VOLUME_METHOD_NAME , parentSystemURI , parentPoolURI , parentVolumeURI , snapshotURI , Boolean . FALSE , null ) ; workflow . createStep ( RESTORE_VOLUME_STEP , String . format ( "Restore VPLEX backend volume %s from snapshot %s" , parentVolumeURI , snapshotURI ) , waitFor , parentSystemURI , parentSystem . getSystemType ( ) , BlockDeviceController . class , restoreVolumeMethod , rollbackMethod , null ) ; _log . info ( "Created workflow step to restore VPLEX backend volume {} from snapshot {}" , parentVolumeURI , snapshotURI ) ; return RESTORE_VOLUME_STEP ; }
create a step in the passed workflow to do a native restore of the backend snapshot with the passed uri .
