qitem.put(attr, sb.toString());
if (attr ==  QueueAttr.id) { qitem.put(attr, sb.toString().toUpperCase()); } else { qitem.put(attr, sb.toString()); }
    private Map<QueueAttr,String> docToQueueItem(Document doc) {        Map<QueueAttr, String> qitem = new HashMap<QueueAttr,String>();        for (QueueAttr attr : QueueAttr.values()) {            Field[] fields = doc.getFields(attr.toString());            if (fields != null) {                StringBuilder sb = new StringBuilder();                boolean first = true;                for (Field field : fields) {                    if (first) {                        first = false;                    } else {                        sb.append(",");                    }                    sb.append(field.stringValue());                }                qitem.put(attr, sb.toString());            }        }        return qitem;    }