apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/service/ConsumerService.java/ConsumerService/generateAndSaveConsumerToken
class ConsumerService:  public ConsumerToken generateAndSaveConsumerToken(Consumer consumer, Date expires) {
    Preconditions.checkArgument(consumer != null, "Consumer can not be null");

    ConsumerToken consumerToken = generateConsumerToken(consumer, expires);
    consumerToken.setId(0);

    return consumerTokenRepository.save(consumerToken);
  }