CompositeModel compositeModel = contributionModel.getComposites().get(composite.getName());
if (compositeModel != null){
contributionModel.getDeployableComposites().put(compositeModel.getCompositeQName(), compositeModel);
} else {
throw new DomainException("Deployable composite name " +
composite.getName() +
" doesn't match a composite in the contribution " +
contributionURI );
}
}
} catch(DomainException ex) {
throw ex;
} catch(Exception ex) {
throw new DomainException(ex);
}
return contributionModel;
}