adds a JavaSerializationInjection