public List<URI> getArtifacts(URL packageSourceURL, InputStream inputStream)
throws ContributionException, IOException {
String contentType = this.packageTypeDescriber.getType(packageSourceURL, null);
if (contentType == null) {
throw new UnsupportedContentTypeException("Unsupported contribution package", packageSourceURL.toString());
}
PackageProcessor packageProcessor = this.processors.getPackageProcessor(contentType);
if (packageProcessor == null) {
throw new UnsupportedContentTypeException(contentType, packageSourceURL.getPath());
}
return packageProcessor.getArtifacts(packageSourceURL, inputStream);
}