private List<ImportedService> parseCDRForReferences (ComponentDefinitionRegistry cdr) throws InvalidAttributeException {
_logger.debug(LOG_ENTRY, "parseCDRForReferences", new Object[]{cdr});
List<ImportedService> result = new ArrayList<ImportedService>();
Set<String> names = cdr.getComponentDefinitionNames();
for (String name: names) {
ComponentMetadata compMetadata = cdr.getComponentDefinition(name);
if (compMetadata instanceof ServiceReferenceMetadata) {
ServiceReferenceMetadata referenceMetadata = (ServiceReferenceMetadata)compMetadata;
boolean optional = referenceMetadata.getAvailability() == ServiceReferenceMetadata.AVAILABILITY_OPTIONAL;
String iface = referenceMetadata.getInterface();