public synchronized Session getSession ( ) { if ( session == null ) { if ( authenticator != null ) { session = Session . getInstance ( properties , authenticator ) ; } else { session = Session . getInstance ( properties ) ; } } return session ; }
Gets the Session - object .