public synchronized void addSession(MXSession session){
  mLoginStorage.addCredentials(session.getHomeserverConfig());
synchronized (LOG_TAG) {
    mMXSessions.add(session);
  }
}

public synchronized void addSession ( MXSession session ) { mLoginStorage . addCredentials ( session . getHomeserverConfig ( ) ) ; synchronized ( LOG_TAG ) { mMXSessions . add ( session ) ; } }
set a default session .
