Write a desrializer modifier to get injection to work