docs: private void addConnection() throws SQLException {
  
      //create new connection
      Protocol protocol = Utils.retrieveProxy(urlParser, globalInfo);
      MariaDbConnection connection = new MariaDbConnection(protocol);
      MariaDbPooledConnection pooledConnection = createPoolConnection(connection);
  
      if (options.staticGlobal) {
        //on first connection load initial state
        if (globalInfo == null) {
          initializePoolGlobalState(connection);
        }
        //set default transaction isolation level to permit resetting to initial state
        connection.setDefaultTransactionIsolation(globalInfo.getDefaultTransactionIsolation());
      } else {
        //set default transaction isolation level to permit resetting to initial state
        connection.setDefaultTransactionIsolation(connection.getTransactionIsolation());
      }
  
      if (poolState.get() == POOL_STATE_OK
          && totalConnection.incrementAndGet() <= options.maxPoolSize) {
        idleConnections.addFirst(pooledConnection);
  
        if (logger.isDebugEnabled()) {
          logger.debug("pool {} new physical connection created (total:{}, active:{}, pending:{})",
              poolTag, totalConnection.get(), getActiveConnections(), pendingRequestNumber.get());
        }
        return;
      }
  
      silentCloseConnection(pooledConnection);
    }