code: public Connection<T> createConnection()
      {
          //log info
          this.LOGGER.logInfo(new Object[]{"Opening a new connection from factory type: ",this.getClass().getName()},null);
  
          //create resource
          T resource=this.createResourceImpl();
          if(resource==null)
          {
              throw new FaxException("Unable to create resource.");
          }
  
          //create connection
          Connection<T> connection=this.createConnectionForResource(resource);
  
          //register connection
          CloseableResourceManager.registerCloseable(connection);
  
          //log info
          this.LOGGER.logInfo(new Object[]{"New connection opened."},null);
          
          return connection;
      }
docs: Creates and returns the connection to be used.
  
  @return  The connection