public static boolean isVcenterInUse(DbClient dbClient,URI vcenterURI){
  List<NamedElementQueryResultList.NamedElement> datacenterUris=listChildren(dbClient,vcenterURI,VcenterDataCenter.class,"label","vcenter");
  for (  NamedElementQueryResultList.NamedElement datacenterUri : datacenterUris) {
    if (isDataCenterInUse(dbClient,datacenterUri.getId())) {
      return true;
    }
  }
  return false;
}

public static boolean isVcenterInUse ( DbClient dbClient , URI vcenterURI ) { List < NamedElementQueryResultList . NamedElement > datacenterUris = listChildren ( dbClient , vcenterURI , VcenterDataCenter . class , "label" , "vcenter" ) ; for ( NamedElementQueryResultList . NamedElement datacenterUri : datacenterUris ) { if ( isDataCenterInUse ( dbClient , datacenterUri . getId ( ) ) ) { return true ; } } return false ; }
checks if an vcenter is in use by an export groups
