try { return ((Boolean) map.get(key)).booleanValue(); } catch (Exception e) { return def; }
try { return ((Number) map.get(key)).intValue(); } catch (Exception e) { return def; }
try { Object o = map.get(key); if (cla.isInstance(o)) { return o; } else { return def; } } catch (Exception t) { return def; }
try { return (String) map.get(key); } catch (Exception t) { return def; }