Object value = entry.getValue();
if (value == null) value = "";
else if (value instanceof GrailsParameterMap) {
GrailsParameterMap child = (GrailsParameterMap)value;
Set nestedEntrySet = child.entrySet();
for (Iterator i = nestedEntrySet.iterator(); i.hasNext();) {
Map.Entry childEntry = (Map.Entry) i.next();
appendEntry(childEntry, queryString, encoding, entry.getKey().toString() + '.');
boolean hasMore = i.hasNext();
if (hasMore) queryString.append('&');