# File lib/rest.rb, line 165
  def host
    node = self
    while( node )
      node.children.each do |c|
        if c.is_a? Host
          return c
        end
      end
      node = node.parent
    end
    nil
  end