1 min readJan 15, 2020
Good post. However, it seems to me that Morphia has overstepped their prerogative. The line `constructor.setAccessible(true);` shouldn’t be there (IMO). Instead the method should catch the thrown exception (IllegalAccess or whatever) and then give the caller the opportunity to handle the exception by providing their own instance.