private void findSessionId(byte[] b,int off,int len){
  String sessionStart=new String(b,off,len);
  int traceStartIdx=sessionStart.indexOf(START_TEXT);
  int sessionIdStart=-1;
  int sessionIdEnd=-1;
  if (traceStartIdx >= 0) {
    sessionIdStart=traceStartIdx + START_TEXT.length();
    if (sessionIdStart < sessionStart.length()) {
      sessionIdEnd=sessionStart.indexOf(' ',sessionIdStart);
    }
  }
  if (sessionIdStart >= 0 && sessionIdEnd > sessionIdStart && sessionIdEnd < sessionStart.length()) {
    try {
      int sessionId=Integer.parseInt(sessionStart.substring(sessionIdStart,sessionIdEnd));
      traceSessions.put(sessionName,sessionId);
    }
 catch (    NumberFormatException ex) {
    }
  }
}

private void findSessionId ( byte [ ] b , int off , int len ) { String sessionStart = new String ( b , off , len ) ; int traceStartIdx = sessionStart . indexOf ( START_TEXT ) ; int sessionIdStart = - 1 ; int sessionIdEnd = - 1 ; if ( traceStartIdx >= 0 ) { sessionIdStart = traceStartIdx + START_TEXT . length ( ) ; if ( sessionIdStart < sessionStart . length ( ) ) { sessionIdEnd = sessionStart . indexOf ( ' ' , sessionIdStart ) ; } } if ( sessionIdStart >= 0 && sessionIdEnd > sessionIdStart && sessionIdEnd < sessionStart . length ( ) ) { try { int sessionId = Integer . parseInt ( sessionStart . substring ( sessionIdStart , sessionIdEnd ) ) ; traceSessions . put ( sessionName , sessionId ) ; } catch ( NumberFormatException ex ) { } } }
tries to find the session id
