public VPlexVirtualVolumeInfo findVirtualVolume(String virtualVolumeName,String virtualVolumePath){
  VPlexVirtualVolumeInfo vvinfo=null;
  if (virtualVolumePath != null && !virtualVolumePath.isEmpty()) {
    try {
      vvinfo=getVirtualVolumeByPath(virtualVolumePath);
    }
 catch (    Exception ex) {
      s_logger.warn("Didn't find virtual volume by path at {}, will check by name {}",virtualVolumePath,virtualVolumeName);
    }
  }
  if (null == vvinfo && (null != virtualVolumeName && !virtualVolumeName.isEmpty())) {
    vvinfo=findVirtualVolumeAndUpdateInfo(virtualVolumeName);
  }
  s_logger.info("returning virtual volume: ");
  return vvinfo;
}

public VPlexVirtualVolumeInfo findVirtualVolume ( String virtualVolumeName , String virtualVolumePath ) { VPlexVirtualVolumeInfo vvinfo = null ; if ( virtualVolumePath != null && ! virtualVolumePath . isEmpty ( ) ) { try { vvinfo = getVirtualVolumeByPath ( virtualVolumePath ) ; } catch ( Exception ex ) { s_logger . warn ( "Didn't find virtual volume by path at {}, will check by name {}" , virtualVolumePath , virtualVolumeName ) ; } } if ( null == vvinfo && ( null != virtualVolumeName && ! virtualVolumeName . isEmpty ( ) ) ) { vvinfo = findVirtualVolumeAndUpdateInfo ( virtualVolumeName ) ; } s_logger . info ( "returning virtual volume: " ) ; return vvinfo ; }
returns a vplexvirtualvolumeinfo object for the given virtual volume name and context path . an attempt will first be made to get the virtual volume directly by its path , but if that fails , this method will do the old " search the entire vplex " process . if still no volume is found , it will return null .
