text: public AttributeSource(AttributeFactory factory) {this.attributes = new LinkedHashMap<>();this.attributeImpls = new LinkedHashMap<>();this.currentState = new State[1];this.factory = Objects.requireNonNull(factory, "AttributeFactory must not be null");}