if (field instanceof OneToManyAssociation) {
content = new OneToManyFieldImpl(object, associatedObject, (OneToManyAssociation) field);
} else if (field instanceof OneToOneAssociation) {
final ObjectSpecification fieldSpecification = field.getSpecification();
if (fieldSpecification.isParseable()) {
content = new TextParseableFieldImpl(object, associatedObject, (OneToOneAssociation) field);
} else {
content = new OneToOneFieldImpl(object, associatedObject, (OneToOneAssociation) field);
}
} else {
throw new IsisException();