extidentifiers = new ArrayList<ExternalIdentifier>();
KeyedReference[] keyrarr = ibag.getKeyedReferenceArray();
for (int i = 0; keyrarr != null && i < keyrarr.length; i++)
{
KeyedReference keyr = (KeyedReference)keyrarr[i];
ExternalIdentifier extId = new ExternalIdentifierImpl(lcm);
extId.setValue(keyr.getKeyValue());
extId.setName(new InternationalStringImpl(keyr.getKeyName()));
String tmodelKey = keyr.getTModelKey();
if (tmodelKey != null) {
ClassificationScheme scheme = new ClassificationSchemeImpl(lcm);
scheme.setKey(new KeyImpl(tmodelKey));
extId.setIdentificationScheme(scheme);
}
extidentifiers.add(extId);
}
}
return extidentifiers;