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