compositeUris.add(anArtifactUri);
} else {
URL artifactURL = packageProcessor.getArtifactURL(new URL(contribution.getLocation()), anArtifactUri);
// Add the deployed artifact model to the resolver
Artifact artifact = this.contributionFactory.createArtifact();
artifact.setURI(anArtifactUri.toString());
artifact.setLocation(artifactURL.toString());
contribution.getArtifacts().add(artifact);
modelResolver.addModel(artifact);
model = this.artifactProcessor.read(contributionURL, anArtifactUri, artifactURL);
if (model != null) {
artifact.setModel(model);
// Add the loaded model to the model resolver
modelResolver.addModel(model);
if ( isSCADefnsFile(anArtifactUri) ) {
scaDefinitionsSink.add(model);
}
}
}
}
for (URI anArtifactUri : compositeUris) {
URL artifactURL = packageProcessor.getArtifactURL(new URL(contribution.getLocation()), anArtifactUri);
// Add the deployed artifact model to the resolver
Artifact artifact = this.contributionFactory.createArtifact();
artifact.setURI(anArtifactUri.toString());
artifact.setLocation(artifactURL.toString());
contribution.getArtifacts().add(artifact);
modelResolver.addModel(artifact);
model = this.artifactProcessor.read(contributionURL, anArtifactUri, artifactURL);
if (model != null) {
artifact.setModel(model);
// Add the loaded model to the model resolver
modelResolver.addModel(model);
}
}
}