public Cluster updateCluster(
final String id,
final Cluster updateCluster) throws GenieException {
LOG.debug("Called with id " + id + " and cluster " + updateCluster);
if (StringUtils.isBlank(id)) {
throw new GeniePreconditionException("No cluster id entered. Unable to update.");
}
if (updateCluster == null) {
throw new GeniePreconditionException("No cluster information entered. Unable to update.");
}
if (!this.clusterRepo.exists(id)) {
throw new GenieNotFoundException("No cluster exists with the given id. Unable to update.");
}
if (StringUtils.isNotBlank(updateCluster.getId())