protected void generateAttributes(List<XmlWriter.Attribute> attrs,AttributeGenerator generator){
  for (  Map.Entry<String,String> entry : generator.entrySet()) {
    String value=entry.getValue();
    if (value != null) {
      attrs.add(new XmlWriter.Attribute(entry.getKey(),value));
    }
  }
}

protected void generateAttributes ( List < XmlWriter . Attribute > attrs , AttributeGenerator generator ) { for ( Map . Entry < String , String > entry : generator . entrySet ( ) ) { String value = entry . getValue ( ) ; if ( value != null ) { attrs . add ( new XmlWriter . Attribute ( entry . getKey ( ) , value ) ) ; } } }
generates the attributes in the generator into the list of attributes .
