Update DocumentManager.php