code: private int currentSequence(String name) {
          Map<String, Integer> sequencesForClass = sequences.get(getClass());
          if(sequencesForClass == null) {
              sequencesForClass = new HashMap<String, Integer>();
              sequences.put(getClass(), sequencesForClass);
          }
  
          Integer seq = sequencesForClass.get(name);
          seq = seq == null ? 1 : seq + 1;
  
          sequencesForClass.put(name, seq);
          return seq;
      }
docs: Retrieve the current sequence value for the given property.
  @param name name of the property that should be assigned the sequence value.
  @return The current value of the referenced sequence.