/** * Gets the session tracking modes that are in effect for this <tt>ServletContext</tt>. * * @return set of the session tracking modes in effect for this <tt>ServletContext</tt> */ @Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public Set<SessionTrackingMode> getEffectiveSessionTrackingModes() { if (SecurityUtil.isPackageProtectionEnabled()) { return (Set<SessionTrackingMode>) doPrivileged("getEffectiveSessionTrackingModes", null); } else { return context.getEffectiveSessionTrackingModes(); } }