Document manager implementation