/// <summary>
    /// Gets a feed of the given type (rss or atom) and remove's emails
    /// to prevent spam
    /// </summary>
    /// <param name="feed"></param>
    /// <param name="type"></param>
    /// <returns></returns>
    protected ActionResult GetFeedResult(AtomFeed feed, string type)
    {
      //remove email's to prevent spam
      foreach (AtomPerson person in feed.People.Concat(feed.Entries.SelectMany(e => e.People)))
      {
        person.Email = null; //string.Empty;
      }

      if (type == "atom")
      {
        return new XmlWriterResult((w) => feed.Xml.WriteTo(w))
        {
          ContentType = Atom.ContentTypeFeed
        };
      }
      else if (type == "rss")
      {
        return new XmlWriterResult((w) => feed.WriteRssTo(w))
        {
          ContentType = "text/xml"
        };
      }
      else
      {
        throw new ResourceNotFoundException(type + " feed", "requested");
      }
    }