Re-added Document resurrection for XPages context

Signed-off-by: Nathan T Freeman <nathan.freeman@redpilldevelopment.com>