docs: protected String generateDefinitionId(DeploymentEntity deployment, DefinitionEntity newDefinition, DefinitionEntity latestDefinition) {
      String nextId = idGenerator.getNextId();
  
      String definitionKey = newDefinition.getKey();
      int definitionVersion = newDefinition.getVersion();
  
      String definitionId = definitionKey
        + ":" + definitionVersion
        + ":" + nextId;
  
      // ACT-115: maximum id length is 64 characters
      if (definitionId.length() > 64) {
        definitionId = nextId;
      }
      return definitionId;
    }