if (size > 0) {
writer.append(" <multiple-association field=\"" + field + "\" ");
writer.append(">\n");
for (int i = 0; i < size; i++) {
final Object oid = references.elementAt(i);
final RootOidDefault rootOidDefault = (RootOidDefault) oid;
if (rootOidDefault.isTransient()) {
throw new ObjectPersistenceException("Can't add tranisent OID (" + oid + ") to " + field + " element.");
}
writer.append(" <element ");
Utils.appendAttribute(writer, "oid", rootOidDefault.enString(getOidMarshaller()));
writer.append("/>\n");
}
writer.append(" </multiple-association>\n");
writer.flush();
}