String strValue = null; if (value != null) { strValue = value.toString(); } strMap.put(strKey, strValue);
strMap.put(strKey, value);
  public static Map toStringMap(Map _map) {    Map strMap;    if (_map == null) {      strMap = null;    }    else {      strMap = new HashMap();      Iterator entrySetIter = _map.entrySet().iterator();      while (entrySetIter.hasNext()) {        Map.Entry entry = (Map.Entry) entrySetIter.next();        Object key = entry.getKey();        String strKey = null;        if (key != null) {          strKey = key.toString();        }        Object value = entry.getValue();        String strValue = null;        if (value != null) {          strValue = value.toString();        }        strMap.put(strKey, strValue);      }    }    return strMap;  }