*/
public void fixObjectReferences(Object object, Map objectDescriptors, Map processedObjects, ObjectLevelReadQuery query, RemoteSession session) {
Object attributeValue = this.getMapping().getAttributeValueFromObject(object);
//bug 4147755 if it is not a Remote Valueholder then treat as if there was no VH...
if (attributeValue instanceof RemoteValueHolder){
RemoteValueHolder rvh = (RemoteValueHolder)this.getMapping().getAttributeValueFromObject(object);
rvh.setSession(session);
rvh.setMapping(this.getMapping());
if ((!query.shouldMaintainCache()) && ((!query.shouldCascadeParts()) || (query.shouldCascadePrivateParts() && (!getMapping().isPrivateOwned())))) {
rvh.setQuery(null);
} else {
rvh.setQuery(query);
}
// set to uninstantiated since no objects are serialized past remote value holders
rvh.setUninstantiated();
}else{
this.getMapping().fixRealObjectReferences(object, objectDescriptors, processedObjects, query, session);
}
}