public static ChartHolder getChartHolder(String chartId, PageContext ctx){
return (ChartHolder)ctx.getAttribute(chartId, PageContext.PAGE_SCOPE);
}
public static final ChartHolder getChartHolder(Tag tag, PageContext ctx){
CewolfRootTag root = findRoot(tag, ctx);
if(root instanceof ChartHolder){
return (ChartHolder)root;
} else {
return getChartHolder(root.getChartId(), ctx);
}
}