private static boolean doesNewVpoolContainsVolumePool(URI volumePool,VirtualPool vPool){
  boolean vPoolHasVolumePool=false;
  if (volumePool != null && vPool != null) {
    StringSet poolsToCheck=vPool.getUseMatchedPools() ? vPool.getMatchedStoragePools() : vPool.getAssignedStoragePools();
    if (poolsToCheck != null && poolsToCheck.contains(volumePool.toString())) {
      vPoolHasVolumePool=true;
    }
  }
  return vPoolHasVolumePool;
}

private static boolean doesNewVpoolContainsVolumePool ( URI volumePool , VirtualPool vPool ) { boolean vPoolHasVolumePool = false ; if ( volumePool != null && vPool != null ) { StringSet poolsToCheck = vPool . getUseMatchedPools ( ) ? vPool . getMatchedStoragePools ( ) : vPool . getAssignedStoragePools ( ) ; if ( poolsToCheck != null && poolsToCheck . contains ( volumePool . toString ( ) ) ) { vPoolHasVolumePool = true ; } } return vPoolHasVolumePool ; }
returns true if the vpool contains the given storage pool in its valid pools list .
