code: public Integer getPreviousIDSeq(final String id) {
          Validate.notNull(id, "ID cannot be null");
          final Integer count = this.idCounts.get(id);
          if (count == null) {
              throw new TemplateProcessingException(
                      "Cannot obtain previous ID count for ID \"" + id + "\"");
          }
          return Integer.valueOf(count.intValue() - 1);
      }
docs: <p>
  Returns the last index (ID count) returned for a specific
  value of the {@code id} attribute (without incrementing
  the count).
  </p>
  
  @param id the ID for which the last count will be retrieved
  @return the count