code.checkcast().setType(fmds[i].getDeclaredType());
} else {
code.invokevirtual().setMethod(oidType, "getId",
unwrapped, null);
if (unwrapped != type)
code.invokespecial().setMethod(type, "<init>",
void.class, new Class[]{ unwrapped });
}
} else if (_meta.getAccessType() == ClassMetaData.ACCESS_FIELD){
field = Reflection.findField(oidType, name, true);
if (Modifier.isPublic(field.getModifiers()))