code: protected final Connection<T> createConnectionForResource(T resource)
      {
          if(resource==null)
          {
              throw new FaxException("Connection resource not provided.");
          }
  
          //create new connection
          Connection<T> connection=new ConnectionImpl<T>(resource,this);
          
          return connection;
      }
docs: Creates and returns the connection to be used.
  
  @param   resource
  The resource held by the connection
  @return  The connection