public static void setProperty(JavaScriptObject jso, String propName, short value) {
getJsoProperties(jso, propName).put(propName, Short.valueOf(value));
}
private static PropertyContainer getJsoProperties(JavaScriptObject o) {
PropertyContainer pc = GwtReflectionUtils.getPrivateFieldValue(o,
JsoProperties.JSO_PROPERTIES);
if (pc == null) {
pc = PropertyContainer.newInstance(new HashMap<String, Object>());
GwtReflectionUtils.setPrivateFieldValue(o, JsoProperties.JSO_PROPERTIES, pc);