marshallToJSON(marshallMethodBlock, toMap, mapping);
marshallMethodBlock.finish();
classStructureBuilder.publicOverridesMethod("handles", Parameter.of(EJValue.class, "a0"))
.append(Stmt.nestedCall(Bool.and(
Bool.notEquals(loadVariable("a0").invoke("isObject"), null),
loadVariable("a0").invoke("isObject").invoke("get", SerializationParts.ENCODED_TYPE).invoke("isString").invoke("stringValue")
.invoke("equals", loadVariable("this").invoke("getTypeHandled").invoke("getName"))
)).returnValue()).finish();