String debugStr = req.getParameter("debug");
String containerParam = req.getParameter("container");
String containerStr = req.getParameter("c");
boolean debug = "1".equals(debugStr);
final RenderingContext context = "1".equals(containerStr) ?
RenderingContext.CONTAINER : RenderingContext.GADGET;
final String container =
containerParam != null ? containerParam : ContainerConfig.DEFAULT_CONTAINER;
GadgetContext ctx = new GadgetContext() {