private void handleChannel(String[] args,BufferedReader reader) throws IOException {
  Tuple<String,String> initialPayload=new Tuple<>(args[1],args[2]);
  if (args.length == 5) {
    requestChannelFail.add(initialPayload);
  }
  String line=reader.readLine();
  List<String> commands=new ArrayList<>();
  while (!line.equals("}")) {
    commands.add(line);
    line=reader.readLine();
  }
  requestChannelCommands.put(initialPayload,commands);
}

private void handleChannel ( String [ ] args , BufferedReader reader ) throws IOException { Tuple < String , String > initialPayload = new Tuple < > ( args [ 1 ] , args [ 2 ] ) ; if ( args . length == 5 ) { requestChannelFail . add ( initialPayload ) ; } String line = reader . readLine ( ) ; List < String > commands = new ArrayList < > ( ) ; while ( ! line . equals ( "}" ) ) { commands . add ( line ) ; line = reader . readLine ( ) ; } requestChannelCommands . put ( initialPayload , commands ) ; }
this handles the creation of a channel handler , it basically groups together all the lines of the channel script and put it in a map for later access
