stmts.add(loadVariable(elementVar).invoke("setPropertyString", loadLiteral(property.name()),
loadLiteral(property.value())));
}
final String retValVar = "retVal";
stmts.add(declareFinalVariable(retValVar, type, invokeStatic(TemplateUtil.class, "nativeCast", loadVariable(elementVar))));
<BUG>if (typeHasValueWithOverlayMethods(type)) {
stmts.add(invokeStatic(NativeHasValueAccessors.class, "registerAccessor", loadVariable(retValVar), createAccessorImpl(type, retValVar)));</BUG>
}
stmts.add(loadVariable(retValVar).returnValue());
return stmts;

stmts.add(loadVariable(elementVar).invoke("setPropertyString", loadLiteral(property.name()),
loadLiteral(property.value())));
}
final String retValVar = "retVal";
stmts.add(declareFinalVariable(retValVar, type, invokeStatic(TemplateUtil.class, "nativeCast", loadVariable(elementVar))));
if (implementsNativeHasValueAndRequiresGeneratedInvocation(type)) {
stmts.add(invokeStatic(NativeHasValueAccessors.class, "registerAccessor", loadVariable(retValVar), createAccessorImpl(type, retValVar)));
}
stmts.add(loadVariable(retValVar).returnValue());
return stmts;
