artifact = modelResolver.resolveModel(Artifact.class, artifact);
if (artifact.getLocation() == null) {
// Look for META-INF/sca-contribution-generated.xml
artifact.setURI(Contribution.SCA_CONTRIBUTION_GENERATED_META);
artifact = modelResolver.resolveModel(Artifact.class, artifact);
if (artifact.getLocation() == null) {
// No contribution metadata file was found, default to export all the
// Java packages found in the contribution
Set<String> packages = new HashSet<String>();