}
private boolean fieldContainsReference(final ObjectAdapter parent, final ObjectAssociation field) {
final OneToOneAssociation association = (OneToOneAssociation) field;
final OneToOneFieldImpl fieldContent = new OneToOneFieldImpl(parent, field.get(parent), association);
if (openViewSpecification.canDisplay(new ViewRequirement(fieldContent, ViewRequirement.OPEN))) {
return true;
}
return false;
}