sw.println("if (!obj) {");
sw.indent();
sw.print(context.objRef);
sw.println(" = null;");
sw.println("return this;");
sw.outdent();
sw.println("}");
if (context.maintainIdentity) {
// Verify that the incoming object doesn't already have a wrapper object.
// If there is a backreference, throw an exception.