else
{
PropertyDescriptor persistentPropertyDescriptor = entityDescriptor.state()
.getPropertyByQualifiedName( stateName );
JSONObjectSerializer serializer = new JSONObjectSerializer();
serializer.serialize( newValue, persistentPropertyDescriptor.valueType() );
jsonValue = serializer.getRoot();
}
cloneStateIfGlobalStateLoaded();
state.getJSONObject( JSON_KEY_PROPERTIES ).put( stateName.name(), jsonValue );
markUpdated();
}