*/
@Override
public String render(RegionWidget item, RenderContext context) {
Widget widget = item.getWidget();
if(!WIDGET_TYPE.equals(widget.getType())) {
throw new NotSupportedException("Invalid widget type passed to renderer: " + widget.getType());
}
String widgetScript = getWidgetScript(item);
scriptManager.registerScriptBlock(widgetScript, ScriptLocation.AFTER_RAVE, RenderScope.CURRENT_REQUEST, context);
logger.debug("Gadget Script Data: " + widgetScript);