# File lib/cgikit/session.rb, line 121
  def add_component( component, context = nil, permanently = false )
    unless component_id = component_id(component) then
      component_id = next_component_id()
      if context then
        context_id = context.context_id
      else
        context_id = "#{component_id}.0"
      end
      add_component_for_ids(component, component_id, \
        context_id, permanently)
    end
    component_id
  end