initSetter(decl, javaClass, getterType, instance, valueType);
} catch (NoSuchMethodException | SecurityException | IllegalAccessException e) {
throw Metamodel.newModelError("Failed to find getter method "+getterName+" for: "+decl, e);
}
}else if(decl instanceof LazyValue){
LazyValue lazyDecl = (LazyValue) decl;
java.lang.Class<?> javaClass = ((ReflectionClass)lazyDecl.classMirror).klass;
// FIXME: we should really save the getter name in the LazyDecl
String getterName = Naming.getGetterName(lazyDecl);
try {
// toplevels don't have inheritance