b.returnValue(TypeDesc.OBJECT);
} else {
b.newObject(TypeDesc.forClass(NoSuchPropertyException.class));
b.dup();
b.loadLocal(propertyVar);
b.loadConstant(methodType == READ_METHOD);
// Params to invoke NoSuchPropertyException.<init>.
TypeDesc[] params = {TypeDesc.STRING, TypeDesc.BOOLEAN};
b.invokeConstructor(NoSuchPropertyException.class.getName(), params);