code: public void begin() {
          if(logger.isInfoEnabled()){
              logger.info("Begin transaction.");
          }
          try {
              if(StringUtil.isNotEmpty(driver)){
                  Class.forName(driver);
              }
              Connection conn = DriverManager.getConnection(url, user, password);
              conn.setAutoCommit(false);
              provider.setConnection(conn);
          } catch (ClassNotFoundException ex) {
              throw new SessionException("Driver class not found.", ex);
  
          } catch (SQLException ex){
              throw new SessionException("Failed to begin transaction.", ex);
  
          }
      }
docs: {@inheritDoc}