List points = md.getConfigurationPoints();
int count = size(points);
for (int i = 0; i < count; i++)
{
ConfigurationPointDescriptor cpd = (ConfigurationPointDescriptor) points.get(i);
String pointId = moduleId + "." + cpd.getId();
if (LOG.isDebugEnabled())
LOG.debug("Creating extension point " + pointId);
ConfigurationPointImpl point = new ConfigurationPointImpl();
point.setExtensionPointId(pointId);
point.setLocation(cpd.getLocation());
point.setModule(module);
point.setExpectedCount(cpd.getCount());
point.setContributionsSchema(cpd.getContributionsSchema());
point.setShutdownCoordinator(_shutdownCoordinator);
registry.addConfigurationPoint(point);