public static void matchvPoolWithStoragePools(VirtualPool vpool,List<StoragePool> pools,DbClient dbClient,CoordinatorClient coordinator,String matcherGroupName,StringBuffer errorMessage){
  List<StoragePool> filterPools=getMatchedPoolWithStoragePools(vpool,pools,VirtualPool.getProtectionSettings(vpool,dbClient),VirtualPool.getRemoteProtectionSettings(vpool,dbClient),VirtualPool.getFileRemoteProtectionSettings(vpool,dbClient),dbClient,coordinator,matcherGroupName,errorMessage);
  updateInvalidAndMatchedPoolsForVpool(vpool,filterPools,pools,dbClient);
}

public static void matchvPoolWithStoragePools ( VirtualPool vpool , List < StoragePool > pools , DbClient dbClient , CoordinatorClient coordinator , String matcherGroupName , StringBuffer errorMessage ) { List < StoragePool > filterPools = getMatchedPoolWithStoragePools ( vpool , pools , VirtualPool . getProtectionSettings ( vpool , dbClient ) , VirtualPool . getRemoteProtectionSettings ( vpool , dbClient ) , VirtualPool . getFileRemoteProtectionSettings ( vpool , dbClient ) , dbClient , coordinator , matcherGroupName , errorMessage ) ; updateInvalidAndMatchedPoolsForVpool ( vpool , filterPools , pools , dbClient ) ; }
matches given virtualpool with list of pools provided and update matched / invalid pools in virtualpool .
