title: Is using System.identityHashCode(Obj) reliable to return unique Id
body: <p>I have a implementation of websocket in dropwizard service and theirs a need to implement session management on server side. On connection we get session object which is the communication link between client and server. But their is not way to get Unique id for session like <strong>session.getId()</strong> and i need id for session management.</p>
  
  <p>So i have been thinking of using System.identityHashCode(Session) to get unique id and handle sessions using this ID.</p>
  
  <p>just for reference the websocket onConnect structure is </p>
  
  <pre><code>@OnWebSocketConnect
  public void onOpen(Session session) throws IOException
  {    
   // code to add the session in session management using unique id
  }
  </code></pre>
  
  <p>So using <strong>System.identityHashCode(Session)</strong> will be good?</p>