code: protected void setIdForRelocate( final String id ) {
  
          if ( this.id == null ) {
              throw new IllegalStateException( "There's no session id set." );
          }
          if ( this.manager == null ) {
              throw new IllegalStateException( "There's no manager set." );
          }
  
          /*
           * and mark it as a node-failure-session, so that remove(session) does
           * not try to remove it from memcached... (the session is removed and
           * added when the session id is changed)
           */
          setNote( MemcachedSessionService.NODE_FAILURE, Boolean.TRUE );
          manager.remove( this );
          removeNote( MemcachedSessionService.NODE_FAILURE );
          this.id = id;
          manager.add( this );
  
      }
docs: Set a new id for this session.<br/>
  Before setting the new id, it removes itself from the associated
  manager. After the new id is set, this session adds itself to the
  session manager.
  
  @param id
  the new session id