else if(type.equals(JsTypes.TYPE_OBJECT)) {
Map<String, JsValue> properties = new HashMap<String, JsValue>();
t.setProperties(properties);
JSONObject propJsObj = (JSONObject)o;
Iterator it = propJsObj.keys();
while (it.hasNext()) {
String propName = (String) it.next();
Object propVal = propJsObj.get(propName);
JsValue propJsValue = build(propVal);
properties.put(propName, propJsValue);