* @see de.innovationgate.webgate.api.templates.SimpleContentSource#find(java.lang.String, java.lang.String, java.util.Map)
*/
public Map find(String folder, String query, Map parameters) throws WGQueryException {
URL rssURL;
ChannelIF channel = null;
try {
// rssURL = new URL(query);
channel = FeedParser.parse(new ChannelBuilder(), retrievePage(query));
if (channel != null) {
_channel.set(channel);
}
else {
throw new WGQueryException("Unable to retrieve or parse feed", query);
}
}
catch (Exception e) {
throw new WGQueryException("Exception retrieving or parsing feed", query, e);
}
List items = new ArrayList(channel.getItems());
Map itemMap = new LinkedMap();
Iterator iter = items.iterator();
while(iter.hasNext()){
Item item = (Item) iter.next();