+ " setJavaScriptObject(");
sw.println("JavaScriptObject obj) {");
sw.indent();
sw.println("if (obj != null) {");
sw.indent();
for (Task t : context.tasks) {
if (t.imported != null) {
String fieldName = t.getFieldName(logger);
sw.print("assert JSONWrapperUtil.hasField(obj, \"");
sw.print(fieldName);