Annotate domain classes correctly. Handle nullpointer exceptions caused by calling getUser of unknown user in service methods.