Map<String, String> params = new HashMap<String, String>();
params.put(JcrUtils.REPOSITORY_URI, uri);
repository = new Jcr2davRepositoryFactory().getRepository(params);
Map<String, String> params = new HashMap<String, String>();
params.put(JcrUtils.REPOSITORY_URI, uri);
repository = new Jcr2davRepositoryFactory().getRepository(params);