code: public void put(String name,List list)
      {
          if (list==null || list.size()==0)
          {
              remove(name);
              return;
          }
          
          Object v=list.get(0);
          if (v!=null)
              put(name,v.toString());
          else
              remove(name);
          
          if (list.size()>1)
          {    
              java.util.Iterator iter = list.iterator();
              iter.next();
              while(iter.hasNext())
              {
                  v=iter.next();
                  if (v!=null)
                      add(name,v.toString());
              }
          }
      }
docs: Set a field.
  @param name the name of the field
  @param list the List value of the field. If null the field is cleared.