after finishing changed catch XWikiException back to catching Exception