for (Map.Entry<String, String> entry : mAttrs.entrySet()) { sb.add(entry.getKey(), entry.getValue());
for (Map.Entry<String, Object> entry : mAttrs.entrySet()) { if (entry.getValue() instanceof String[]) { String[] values = (String[]) entry.getValue(); sb.add(entry.getKey(), values, false, true); } else { sb.add(entry.getKey(), entry.getValue().toString()); }
    public String toString() {        ZSoapSB sb = new ZSoapSB();        sb.beginStruct();        sb.add("name", mName);        sb.beginStruct("attrs");        for (Map.Entry<String, String> entry : mAttrs.entrySet()) {            sb.add(entry.getKey(), entry.getValue());        }        sb.endStruct();        sb.endStruct();        return sb.toString();    }