if (url == null) {
throw new RepositoryException("Missing init parameter: url");
}
try {
return new URLRemoteRepositoryFactory(
getLocalAdapterFactory(), new URL(url)).getRepository();
} catch (MalformedURLException e) {
throw new RepositoryException("Invalid repository URL: " + url, e);
}
}