public void setReferenceState(CacheEntry ce, State state) {
if (state == ((PersistentObjectItf) ce).speedoGetReferenceState()) {
return;
}
PersistentObjectItf sp = (PersistentObjectItf) ce;
if (sp.speedoIsActive() && state == null) {
sp.speedoGetHome().sendEvent(HomeItf.PRE_CLEAR, sp, null);
}
sp.speedoSetReferenceState((StateItf) state);
if (sp.speedoIsActive() && state == null) {
sp.speedoGetHome().sendEvent(HomeItf.POST_CLEAR, sp, null);