if (hcEntities != null) {
for (HostComponentStateEntity hc : hcEntities) {
String currentStackVersion = hc.getCurrentStackVersion();
hc.setCurrentStackVersion(getStackIdString(currentStackVersion,
stackName, stackVersion));
hostComponentStateDAO.merge(hc);
}
}
HostComponentDesiredStateDAO hostComponentDesiredStateDAO =
injector.getInstance(HostComponentDesiredStateDAO.class);