if (hcdEntities != null) {
for (HostComponentDesiredStateEntity hcd : hcdEntities) {
String desiredStackVersion = hcd.getDesiredStackVersion();
hcd.setDesiredStackVersion(getStackIdString(desiredStackVersion,
stackName, stackVersion));
hostComponentDesiredStateDAO.merge(hcd);
}
}
ServiceComponentDesiredStateDAO serviceComponentDesiredStateDAO =
injector.getInstance(ServiceComponentDesiredStateDAO.class);