} catch (ActivationException e) {
throw new ServiceRuntimeException(e);
}
// Contribute the given contribution to an in-memory repository
ContributionService contributionService = runtime.getContributionService();
URL contributionURL;
try {
contributionURL = getContributionLocation(applicationClassLoader, location, this.composites);
} catch (MalformedURLException e) {
throw new ServiceRuntimeException(e);
}
try {
ModelResolverImpl modelResolver = new ModelResolverImpl(applicationClassLoader);
String contributionURI = FileHelper.getName(contributionURL.getPath());
contribution = contributionService.contribute(contributionURI, contributionURL, modelResolver, false);
} catch (ContributionException e) {
throw new ServiceRuntimeException(e);
} catch (IOException e) {
throw new ServiceRuntimeException(e);
}