String stylesheet = getPortletConfig().getInitParameter("stylesheet");
String realStylesheet = getPortletConfig().getPortletContext().getRealPath(stylesheet);
String url = prefs.getValue("url", "http://news.bbc.co.uk/rss/sportonline_uk_edition/football/internationals/england/squad_profiles/rss091.xml");
String key = cache.constructKey(url, stylesheet); // TODO: use the entire parameter list
TransformCacheEntry entry = cache.get(key);
if (entry != null)
{
byte[] bytes = (byte[])entry.getDocument();
ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
Streams.drain(bais, response.getPortletOutputStream());
bais.close();
}
else