public static void removeClusterFromHost(DbClient dbClient,Host host){
  List<Initiator> initiators=ComputeSystemHelper.queryInitiators(dbClient,host.getId());
  for (  Initiator initiator : initiators) {
    initiator.setClusterName("");
    dbClient.persistObject(initiator);
  }
  host.setCluster(NullColumnValueGetter.getNullURI());
  dbClient.persistObject(host);
}

public static void removeClusterFromHost ( DbClient dbClient , Host host ) { List < Initiator > initiators = ComputeSystemHelper . queryInitiators ( dbClient , host . getId ( ) ) ; for ( Initiator initiator : initiators ) { initiator . setClusterName ( "" ) ; dbClient . persistObject ( initiator ) ; } host . setCluster ( NullColumnValueGetter . getNullURI ( ) ) ; dbClient . persistObject ( host ) ; }
utility function to dissociate a host and its initiator from its cluster
