Sorry if this is a duplicate post, I tried responding earlier and the post didn't show up..
Tareq, I created http://jira.springframework.org/secu....jspa?id=22634
JIRA issue for the toDocument(...) fix. I attached my proposed fix patch file to the JIRA issue.
Arjen, thanks for creating and fixing the setting the envelope to null JIRA issue!