public static AceObrRepository createRepository(String type, String location) throws Exception { Map<String, String> properties = new HashMap<>(); properties.put(AceObrRepository.PROP_REPO_TYPE, type); properties.put(AceObrRepository.PROP_LOCATIONS, location); AceObrRepository repository = new AceObrRepository(); repository.setProperties(properties); return repository; }