for (Iterator i = arrayItems.keySet().iterator(); i.hasNext();) {
String key = (String) i.next();
attributes.put(TAG_KEY, key == null ? "" : key); //$NON-NLS-1$
out.startTag(TAG_LIST, attributes);
String[] value = (String[]) arrayItems.get(key);
attributes.clear();
if (value != null) {
for (int index = 0; index < value.length; index++) {
String string = value[index];
attributes.put(TAG_VALUE, string == null ? "" : string); //$NON-NLS-1$
out.printTag(TAG_ITEM, attributes, true);