containerName = in.readUTF();
id = in.readObject();
metadata = (SimpleMetaData) in.readObject();
bean = in.readObject();
persistenceContexts = (HashMap<String, EntityManager>) in.readObject();
interceptorInstances = (HashMap<Class, Object>)in.readObject();
contains = (List<StatefulBeanContext>) in.readObject();
removed = in.readBoolean();
replicationIsPassivation = in.readBoolean();
// Since we can't write a ref to our parent, our children also
// don't have a ref to use. So reestablish it.
if (contains != null)
{
for (StatefulBeanContext contained : contains)
{
contained.containedIn = this;
}
}
// If we've just been deserialized, we are passivated
passivated = true;