BZ-1098226 - Inaccessible JBoss EWS container after a few REST requests
(cherry picked from commit 9984ccd801ecba95b9226f9104a0adbfdee13398)