3839404142434445464748
if (dynamicObject.hasProperty(name)) { dynamicObject.setProperty(name, value); } else { try { dynamicObject.invokeMethod(name, value); } catch (MissingMethodException e) { dynamicObject.setProperty(name, value); } } }