public void removeDummyLunPath(StorageSystem storageSystem,URI blockObjectURI) throws Exception {
  log.info("Started dummy lun path removal from secondary volume");
  HDSApiClient apiClient=HDSUtils.getHDSApiClient(hdsApiFactory,storageSystem);
  HDSApiExportManager apiExportManager=apiClient.getHDSApiExportManager();
  String systemObjectId=HDSUtils.getSystemObjectID(storageSystem);
  BlockObject blockObj=BlockObject.fetch(dbClient,blockObjectURI);
  String dummyLunPathId=getDummyHSDPathId(storageSystem,blockObj);
  if (dummyLunPathId != null) {
    apiExportManager.deleteLunPathsFromSystem(systemObjectId,Arrays.asList(dummyLunPathId),storageSystem.getModel());
    log.info("Deleted Dummy Lun path from secondary volume");
  }
 else {
    log.info("Dummy lun path has been removed already");
  }
}

public void removeDummyLunPath ( StorageSystem storageSystem , URI blockObjectURI ) throws Exception { log . info ( "Started dummy lun path removal from secondary volume" ) ; HDSApiClient apiClient = HDSUtils . getHDSApiClient ( hdsApiFactory , storageSystem ) ; HDSApiExportManager apiExportManager = apiClient . getHDSApiExportManager ( ) ; String systemObjectId = HDSUtils . getSystemObjectID ( storageSystem ) ; BlockObject blockObj = BlockObject . fetch ( dbClient , blockObjectURI ) ; String dummyLunPathId = getDummyHSDPathId ( storageSystem , blockObj ) ; if ( dummyLunPathId != null ) { apiExportManager . deleteLunPathsFromSystem ( systemObjectId , Arrays . asList ( dummyLunPathId ) , storageSystem . getModel ( ) ) ; log . info ( "Deleted Dummy Lun path from secondary volume" ) ; } else { log . info ( "Dummy lun path has been removed already" ) ; } }
removes dummy lun path from secondary volume
