}
if (!(container instanceof SessionManagerTracker)) {
throw new IllegalStateException("Container for deployment [" + deploymentId + "] is not a ["
+ SessionManagerTracker.class.getName() + "]. It is a [" + container.getClass().getName() + "]");
}
SessionManagerTracker sessionManagerTracker = (SessionManagerTracker) container;
sessionManagerTracker.addSessionManager(deploymentId, sessionManager);
return this;
}