public int doStartTag() throws JspException {
ChartHolder cd = PageUtils.getChartHolder(getChartId(), pageContext);
ChartImage cid = new ChartImageDefinition(cd, width, height, ChartImage.IMG_TYPE_LEGEND, mimeType, timeout);
Storage storage = Configuration.getInstance(pageContext.getServletContext()).getStorage();
try {
this.sessionKey = storage.storeChartImage(cid, pageContext);
} catch(CewolfException cwex){
log.error("LegendTag.doStartTag: "+cwex.getMessage());
throw new JspException(cwex.getMessage());
}
return SKIP_BODY;