// never allow root node to be evicted
if (fqn.size() == 2)
{
StatefulBeanContext bean = (StatefulBeanContext) cache_.get(fqn, "bean");
if (bean == null)
{
super.evict(fqn);
return;
}
synchronized (bean)
{
if (bean.isInUse())
{
bean.markedForPassivation = true;
super.evict(fqn);
return;
}
super.evict(fqn);
}
}