code: private int getTokenQueuePosFromMap(int i)
    {
  
      int pos = m_patternMap[i];
  
      return (pos >= TARGETEXTRA) ? (pos - TARGETEXTRA) : pos;
    }
docs: Given a map pos, return the corresponding token queue pos.
  
  @param i The index in the m_patternMap.
  
  @return the token queue position.