if (context == null) {
//Should an exception be thrown here?
return;
}
//TODO : Change the name of the Interface to RealmExtenstion
RealmInitializer realm = (RealmInitializer) context.getRealm();
if (realm == null) {
//Should an exception be thrown here?
return;
}
realm.logout();
setUserPrincipal(null);
setAuthType(null);
Session session = getSessionInternal(false);
if (session != null) {