JCR-3825: Use RepositoryFactory for first hops

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