Still I don't understand why (1) results in a TransientRepository whereas (2) does not - since both get a config file and a repository directory location.
(1) cfgMap.put(RepositoryFactoryImpl.REPOSITORY_CONF, configLocation); cfgMap.put(RepositoryFactoryImpl.REPOSITORY_HOME, repositoryLocation); RepositoryFactory repositoryFactory = new RepositoryFactoryImpl(); repository = repositoryFactory.getRepository(cfgMap); (2) RepositoryConfig config = RepositoryConfig.create(xml, dir); Repository repository = RepositoryImpl.create(config)
