int count = size(services);
for (int i = 0; i < count; i++)
{
ServicePointDescriptor sd = (ServicePointDescriptor) services.get(i);
XmlServicePointDefinitionImpl servicePoint = new XmlServicePointDefinitionImpl(module, sd.getId(), sd.getLocation(),
sd.getVisibility(), sd.getInterfaceClassName());
// Store the schema if embedded,
// Schemas are for service factories only
if (sd.getParametersSchema() != null) {
servicePoint.setParametersSchema(sd.getParametersSchema());
servicePoint.setParametersCount(sd.getParametersCount());
} else if (sd.getParametersSchemaId() != null ) {
// referenced schemas are resolved in post processing
servicePoint.setParametersSchemaId(sd.getParametersSchemaId());
}
module.addServicePoint(servicePoint);