code: private void connect() {
      session = CqlSession.builder().build();
  
      System.out.printf("Connected to session: %s%n", session.getName());
    }
docs: Initiates a connection to the session specified by the application.conf.