public void addSessionListener(SessionListener listener) {
listeners.add(listener);
}
private void checkSessionLimit() throws SessionLimitException {
if (maxSessions >= 0 && sessionsByID.size() >= maxSessions) throw new SessionLimitException(
maxSessions, "Cannot create new session. Limit of " + maxSessions + " already raeached.");
}