private Repository createRepository() {
if (configuration.repositoryTypeForLatestVersion() == RepositoryType.File) {
return new FilesystemRepository(new File(configuration.repositoryLocationForLatestVersion()));
} else {
return new HttpRepository(configuration.repositoryLocationForLatestVersion());
}
}