Creates an XML document (JDOM) for the given feed bean.
Parameters: feed - the feed bean to generate the XML document from. the generated XML document (JDOM). throws: IllegalArgumentException - thrown if the type of the given feed bean does notmatch with the type of the WireFeedGenerator. throws: FeedException - thrown if the XML Document could not be created.