Avoid marking InMemorySessionManager as Serializable as not all sub-classes are Serializable.