public static void json(String className, String endPointName)
throws Exception {
Widget widget = null;
try {
widget = WidgetManager.getWidget(className);
Object o = widget.endpoint(endPointName, params);
response.contentType = "text/plain";
renderJSON(o);
} catch (Exception e) {
notFound(className);
}