RESTEASY-1103: Restoring PR #572, imposing XML security constraints.
Merge pull request #575 from ronsigal/master

RESTEASY-1103: Restoring PR #572, imposing XML security constraints.