Added ability for repository objects to throw exceptions by default if a requested property is null. This faciliates debugging. The behaviour may be turned off by passing false to the getter method.