Call this function, wrapped between an open() and close() pair
(Object r, Object o1)
| 114 | |
| 115 | Object rr = Conversions.convert(o1, Runnable.class); |
| 116 | |
| 117 | if (rr instanceof Runnable) { |
| 118 | |
| 119 | open(); |
| 120 | try { |
| 121 | ((Runnable) rr).run(); |
| 122 | } finally { |
| 123 | close(); |
| 124 | } |
| 125 | } else |
| 126 | throw new ClassCastException(" can't call " + o1); |
| 127 | |
| 128 | return this; |
| 129 | } |
| 130 | |
| 131 | @Override |
| 132 | public Object asMap_get(String s) { |
| 133 | return target.asMap_get(s); |
| 134 | } |
| 135 |