code: protected final String computeId(
              final ITemplateContext context,
              final IProcessableElementTag tag,
              final String name, final boolean sequence) {
  
          String id = tag.getAttributeValue(this.idAttributeDefinition.getAttributeName());
          if (!org.thymeleaf.util.StringUtils.isEmptyOrWhitespace(id)) {
              return (StringUtils.hasText(id) ? id : null);
          }
  
          id = FieldUtils.idFromName(name);
          if (sequence) {
              final Integer count = context.getIdentifierSequences().getAndIncrementIDSeq(id);
              return id + count.toString();
          }
          return id;
  
      }
docs: This method is designed to be called from the diverse subclasses