533534535536537538539540541542
if (map.containsKey(key)) { Object value_ = map.get(key); if (value_ instanceof String) map.put(key, value); else throw new XCATTypeMismatchException(TypeUtil.getType(value_), Type.String); } else map.put(key, value); }
551552553554555556557558559560
if (map.containsKey(key)) { Object value_ = map.get(key); if (value_ instanceof Boolean) map.put(key, new Boolean(value)); else throw new XCATTypeMismatchException(TypeUtil.getType(value_), Type.Bool); } else map.put(key, new Boolean(value)); }