InitializationParameter param = initParams.get().remove(instance.getSessionId());
if (param != null) {
ReusedSession session = new ReusedSession(instance.getSessionId(), instance.getCapabilities());
sessionStore.get().store(param, session);
persistEvent.fire(new PersistReusedSessionsEvent());
} else {
instance.quit();
}
}