JCR-3503 ConnectionHelper should not call isBatchMode() more times inside a Method

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1439768 13f79535-47bb-0310-9956-ffa450edef68