CONN-329: adding policy check to outbound doc query.
Merge pull request #451 from msweaver/4.0.1-RC2-branch

CONN-329: adding policy check to outbound doc query.