return true;
// if the field isn't loaded in the state manager, it still might be
// loaded in the data cache, in which case we still have to correct
// it to keep the cache in sync
DataCache cache = sm.getMetaData().getDataCache();
if (cache == null)
return false;
// can't retrieve an embedded object directly, so always assume the
// field is loaded and needs to be corrected
if (sm.isEmbedded())
return true;
PCData pc = cache.get(sm.getObjectId());
if (pc == null)
return false;
return pc.isLoaded(field);
}