def manager(collection, name, klass, reset = false)
    name     = name.to_sym
    actor_id = "#{klass}::#{name}".to_sym

    if collection.has_key?(actor_id)
      manager = parallel? ? Celluloid::Actor[actor_id] : collection[actor_id]
    else
      if parallel?
        klass.supervise({ :as => actor_id, :args => [actor_id, reset] })
        manager = Celluloid::Actor[actor_id]
      else
        manager = klass.new(actor_id, reset) # Managers should have standardized initialization parameters
      end
      collection[actor_id] = manager
    end
    test_connection(actor_id, manager)
  end
def manager(collection, name, klass, reset = false)
    name     = name.to_sym
    actor_id = "#{klass}::#{name}".to_sym

    if collection.has_key?(actor_id)
      manager = parallel? ? Celluloid::Actor[actor_id] : collection[actor_id]
    else
      if parallel?
        klass.supervise({ :as => actor_id, :args => [actor_id, reset] })
        manager = Celluloid::Actor[actor_id]
      else
        manager = klass.new(actor_id, reset) # Managers should have standardized initialization parameters
      end
      collection[actor_id] = manager
    end
    test_connection(actor_id, manager)
  end
---