try {
if (identifiers == null || identifiers.size()==0)
return null;
// Identifiers
IdentifierBag ibag = (IdentifierBag)(XmlObject.Factory.newInstance()).changeType(IdentifierBag.type);
Iterator iditer = identifiers.iterator();
while (iditer.hasNext()) {
ExternalIdentifier extid = (ExternalIdentifier) iditer.next();
if (extid != null ) {
KeyedReference keyr = ibag.addNewKeyedReference();
InternationalStringImpl iname = (InternationalStringImpl) ((RegistryObject) extid).getName();
String value = extid.getValue();
ClassificationScheme scheme = extid.getIdentificationScheme();