Fix serializer initialization with Spring container and Azure