MEDIUM / Refactored DocResourceManager after xmlcode disconnecting / WIP