// End: Refactor
final String repositoryName;
final InputStream stream;
if (repository.startsWith(FeaturesLabelProvider.MVN_URL_PREFIX)) {
final MvnURLConnectionFactory urlConnectionFactory = new MvnURLConnectionFactory(mvnConfiguration);
stream = urlConnectionFactory.create(new URL(repository)).getInputStream();
final String[] repositoryComponents = repository.split("/"); //$NON-NLS-1$
repositoryName = repositoryComponents[1] + "-" + repositoryComponents[2]; //$NON-NLS-1$
} else {
stream = new URL(repository).openStream();