code: protected Session createSession() throws Exception {
          Config config = configBean.getConfig();
          DataSource dataSource = InitialContext.doLookup(config.getDataSourceJNDI());
          return new Session(dataSource, config.getDialect());
      }
docs: Creates {@link Session} instance, connected to the database.
  
  @throws NamingException
  @throws SQLException