code: public void addState(final String id, final Collection<Attribute> attributes) {
      this.stateMap.put(id, attributes);
    }
docs: Binds a set of Attribute values to an identifier.
  
  @param id
  the identifier
  @param attributes
  the set of attributes.