code: private void _serializeList(String name, List list, StringBuilder sb, Set<Object> done) throws ConverterException {
  
  	if (useShortcuts) sb.append("[];");
  	else sb.append("new Array();");
  
  	ListIterator it = list.listIterator();
  	int index = -1;
  	while (it.hasNext()) {
  	    // if(index!=-1)sb.append(",");
  	    index = it.nextIndex();
  	    sb.append(name + "[" + index + "]=");
  	    _serialize(name + "[" + index + "]", it.next(), sb, done);
  	    // sb.append(";");
  	}
      }
docs: serialize a List (as Array)
  
  @param name
  @param list List to serialize
  @param sb
  @param done
  @return serialized list
  @throws ConverterException