question: protected String toValString ( Enumeration en ) { StringBuilder sb = new StringBuilder ( ) ; boolean first = true ; while ( en . hasMoreElements ( ) ) { String val = ( String ) en . nextElement ( ) ; val = encodeVal ( val ) ; if ( first ) { first = false ; } else { sb . append ( ',' ) ; } sb . append ( val ) ; } return sb . toString ( ) ; }
target:  Converts an enumeration of values for an attribute into a string, encoding special characters in the values as necessary. This is used by the modify() method where the values needs to be  in a particular order.