src/main/java/com/openbank/util/SessionStore.java
public void importSession() {
        Optional.ofNullable(database.getCollection(collection).find(session()).first())
                .ifPresent(Serenity.getCurrentSession()::putAll);

    }
/**
     * import stored serenity session from database
     */
import stored serenity session from database
import stored serenity session from database
public void importSession() {
        Optional.ofNullable(database.getCollection(collection).find(session()).first())
                .ifPresent(Serenity.getCurrentSession()::putAll);
    }
public void importSession ( ) { Optional . ofNullable ( database . getCollection ( collection ) . find ( session ( ) ) . first ( ) ) . ifPresent ( Serenity . getCurrentSession ( ) :: putAll ) ; }
import stored serenity session from database
import stored serenity session from database