Different way to prevent serialisation (prevent NPE after server
restart).