convert old xs_DocumentManager to new structure