if(header.endsWith(""+String.format("%02d",currentSession))){//Identifies the current session. This breaks in case of more than 9 sessions. But this wont happen.
if(header.endsWith(""+String.format("%02d",currentSession))){//Identifies the current session. This breaks in case of more than 9 sessions. But this wont happen.