if (consumerUuid != null) {
// If this UUID has been deleted, return a 410.
if (deletedConsumerCurator.countByConsumerUuid(consumerUuid) > 0) {
log.debug("Key " + consumerUuid + " is deleted, throwing GoneException");
throw new GoneException(
i18n.tr("Unit {0} has been deleted", consumerUuid), consumerUuid);
}
Consumer consumer = this.consumerCurator.getConsumer(consumerUuid);