}
if (updateCommand == null) {
throw new GeniePreconditionException("No command information entered. Unable to update.");
}
if (!this.commandRepo.exists(id)) {
throw new GenieNotFoundException("No command exists with the given id. Unable to update.");
}
if (StringUtils.isNotBlank(updateCommand.getId())
&& !id.equals(updateCommand.getId())) {
throw new GenieBadRequestException("Command id inconsistent with id passed in.");
}