protected void doUpdateMap(Object source, MapDiff diff) {
IObservableMap observable = observe(source);
try {
diff.applyTo(observable);
} finally {
observable.dispose();
}
}
public IObservableMap observe(Object source) {
return observe(Realm.getDefault(), source);