cluster.setAllocationState(allocationState); try { cluster = _clusterDao.persist(cluster);
throw new InvalidParameterValueException("Unable to resolve " + allocationState + " to a supported state"); } else { cluster.setAllocationState(newAllocationState); doUpdate = true;