Bugfix on EntityListener, unauthenticated applications fail to save to database