code: public final void addConnections (final int max) throws Exception {
  
          if (connections.size() < maxConnections) {
              for (int i = 1; i < max; i++) {
                  addNewConnection();
              }
          }
      }
docs: Adds a number of new connections to this session.
  
  @param max The number of Connections to open.
  @throws Exception if any error occurs.