// a common function implementation between generated classes.
sw.println("public void setJSONData(String data)");
sw.println("throws JSONWrapperException {");
sw.indent();
sw.println("setJavaScriptObject(JSONWrapperUtil.evaluate(data));");
sw.outdent();
sw.println("}");
// Satisfies JSWrapper and allows generated implementations to
// efficiently initialize new objects.
// Method declaration