if (scdEntities != null) {
for (ServiceComponentDesiredStateEntity scd : scdEntities) {
String desiredStackVersion = scd.getDesiredStackVersion();
scd.setDesiredStackVersion(getStackIdString(desiredStackVersion,
stackName, stackVersion));
serviceComponentDesiredStateDAO.merge(scd);
}
}
ServiceDesiredStateDAO serviceDesiredStateDAO = injector.getInstance(ServiceDesiredStateDAO.class);