LOG.debug("setting up field " + field + " with " + referenceOid);
if (referenceOid == null) {
return;
}
final Data fieldData = dataManager.loadData(referenceOid);
if (fieldData == null) {
final ObjectAdapter adapter = getPersistenceSession().recreateAdapter(referenceOid, field.getSpecification());
if (!adapter.getResolveState().isDestroyed()) {
adapter.changeState(ResolveState.DESTROYED);