Fixed an obsolete warning in DocumentWrapper.cs