public object GenerateId(object container, object document) { throw new InvalidOperationException("Id cannot be null."); }