private void writeAssociationField(final Writer writer, final String field, final Object entry) throws IOException {
final Oid rootOidDefault = (Oid)entry;
Assert.assertFalse(rootOidDefault.isTransient());
writer.append(" <association");
Utils.appendAttribute(writer, "field", field);
Utils.appendAttribute(writer, "oid", rootOidDefault.enString(getOidMarshaller()));
writer.append("/>\n");
}
private void writeMultipleAssociationField(final Writer writer, final String field, final Object entry) throws IOException {
final ListOfRootOid references = (ListOfRootOid) entry;