Load document.domain from webapp's config. Make this integration better someday...