}
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())
&& !id.equals(updateCluster.getId())) {
throw new GenieBadRequestException("Cluster id inconsistent with id passed in.");
}