List contributions = md.getContributions();
int count = size(contributions);
for (int i = 0; i < count; i++)
{
ContributionDescriptor cd = (ContributionDescriptor) contributions.get(i);
if (!includeContribution(cd.getConditionalExpression(), sourceModule, cd.getLocation()))
continue;
String pointId = cd.getConfigurationId();
String qualifiedId = IdUtils.qualify(moduleId, pointId);
ConfigurationPointImpl point = (ConfigurationPointImpl) _configurationPoints
.get(qualifiedId);
if (point == null)
{
_errorHandler.error(_log, ImplMessages.unknownConfigurationPoint(moduleId, cd), cd
.getLocation(), null);
continue;
}
if (!point.visibleToModule(sourceModule))
{
_errorHandler.error(_log, ImplMessages.configurationPointNotVisible(
point,
sourceModule), cd.getLocation(), null);
continue;
}
addContributionElements(sourceModule, point, cd.getElements());
}
}