code: public void associateConnection(Object connection) throws ResourceException
     {
        if (connection == null)
           throw new ResourceException("Null connection handle");
  
        if (!(connection instanceof HelloWorldConnectionImpl))
           throw new ResourceException("Wrong connection handle");
  
        HelloWorldConnectionImpl handle = (HelloWorldConnectionImpl)connection;
        handle.setManagedConnection(this);
        connections.add(handle);
     }
docs: Used by the container to change the association of an
  application-level connection handle with a ManagedConneciton instance.
  
  @param connection Application-level connection handle
  @throws ResourceException generic exception if operation fails