EDOC-1518: fix bug with caching in JcrRepository