// Look for the specified contribution
for (Contribution contribution: workspace.getContributions()) {
if (key.equals(contribution.getURI())) {
// Compute the contribution dependencies
ContributionDependencyBuilder analyzer = new ContributionDependencyBuilderImpl(monitor);
List<Contribution> dependencies = analyzer.buildContributionDependencies(contribution, workspace);
// Returns entries for the dependencies
// optionally skip the specified contribution
boolean allDependencies = queryString.startsWith("alldependencies=");
for (Contribution dependency: dependencies) {