@@ -0,0 +1,833 @@
+package org.sana.android.app;%0A%0Aimport android.content.Context;%0A%0Aimport org.sana.android.Constants;%0Aimport org.sana.android.content.core.ObserverWrapper;%0Aimport org.sana.core.Observer;%0A%0A/**%0A * Created by winkler.em@gmail.com, on 05/05/2017.%0A */%0Apublic final class SessionManager %7B%0A    public static final String TAG = SessionManager.class.getSimpleName();%0A%0A    public static Observer getCurrentUser(Context context)%7B%0A        Observer object = null;%0A        String username = Preferences.getString(context,%0A                Constants.PREFERENCE_EMR_USERNAME, null);%0A        if(username != null)%7B%0A            object = (Observer) ObserverWrapper.getOneByUsername(context, username);%0A            if(object != null)%7B%0A                ObserverWrapper.initializeRelated(context, object);%0A            %7D%0A        %7D%0A        return object;%0A    %7D%0A%7D%0A

Add session manager for frequently used functions.