{
try {
return (AttrClass) constructor.newInstance(owner, name, value);
}
catch (Exception e) {
throw new ReflectionException("error instantiating object of type " + clazz.getSimpleName(), e);
}
}
}
throw new ReflectionException(clazz.getSimpleName() + " does not have " + clazz.getSimpleName() +
"(" + owner.getClass().getSimpleName() + ",String,String) constructor");
}