public void add(final String name,final String value){
  String[] values=metadata.get(name);
  if (values == null) {
    set(name,value);
  }
 else {
    String[] newValues=new String[values.length + 1];
    System.arraycopy(values,0,newValues,0,values.length);
    newValues[newValues.length - 1]=value;
    metadata.put(name,newValues);
  }
}

public void add ( final String name , final String value ) { String [ ] values = metadata . get ( name ) ; if ( values == null ) { set ( name , value ) ; } else { String [ ] newValues = new String [ values . length + 1 ] ; System . arraycopy ( values , 0 , newValues , 0 , values . length ) ; newValues [ newValues . length - 1 ] = value ; metadata . put ( name , newValues ) ; } }
add a metadata name / value mapping . add the specified value to the list of values associated to the specified metadata name .
