title: HazelcastSessionRepository - custom session ID
body: <p>I need to use custom session ID for the new sessions created by  HazelcastSessionRepository`.</p>
  
  <p>However, <code>HazelcastSessionRepository</code> uses <code>private final class HazelcastSession</code>.</p>
  
  <p>Therefore it is not possible to simply extend <code>HazelcastSessionRepository</code> and override <code>createSession</code> method outside the package <code>org.springframework.session.hazelcast</code>.</p>
  
  <p>Unfortunately, I can see just these 2 options here:</p>
  
  <ol>
  <li>Create own implementation of SessionRepository - just copy of the HazelcastSessionRepository indeed with createSession method changed</li>
  <li>Create an extension of HazelcastSessionRepository (with createSession method overridden) within my project in org.springframework.session.hazelcast package.</li>
  </ol>
  
  <p>Is there any other option?</p>