@Override public ExampleSet createExampleSet(Iterator<AttributeRole> newSpecialAttributes){
  Map<Attribute,String> specialAttributes=new LinkedHashMap<>();
  while (newSpecialAttributes.hasNext()) {
    AttributeRole role=newSpecialAttributes.next();
    specialAttributes.put(role.getAttribute(),role.getSpecialName());
  }
  return new SimpleExampleSet(this,specialAttributes);
}

@ Override public ExampleSet createExampleSet ( Iterator < AttributeRole > newSpecialAttributes ) { Map < Attribute , String > specialAttributes = new LinkedHashMap < > ( ) ; while ( newSpecialAttributes . hasNext ( ) ) { AttributeRole role = newSpecialAttributes . next ( ) ; specialAttributes . put ( role . getAttribute ( ) , role . getSpecialName ( ) ) ; } return new SimpleExampleSet ( this , specialAttributes ) ; }
returns a new example set with all attributes switched on . the iterator over the attribute roles will define the special attributes .
