private static void updateClusterTenant(DbClient dbClient,URI dataCenterId,URI tenantId){
  List<NamedElement> clustersUris=listChildren(dbClient,dataCenterId,Cluster.class,"label","vcenterDataCenter");
  for (  NamedElement clusterUri : clustersUris) {
    Cluster cluster=dbClient.queryObject(Cluster.class,clusterUri.getId());
    if (cluster != null) {
      cluster.setTenant(tenantId);
      dbClient.persistObject(cluster);
    }
  }
}

private static void updateClusterTenant ( DbClient dbClient , URI dataCenterId , URI tenantId ) { List < NamedElement > clustersUris = listChildren ( dbClient , dataCenterId , Cluster . class , "label" , "vcenterDataCenter" ) ; for ( NamedElement clusterUri : clustersUris ) { Cluster cluster = dbClient . queryObject ( Cluster . class , clusterUri . getId ( ) ) ; if ( cluster != null ) { cluster . setTenant ( tenantId ) ; dbClient . persistObject ( cluster ) ; } } }
updates the cluster ' s tenant .
