Update to realmmanager api