code: @Override
      public boolean process(ContentEvent event) {
  
          ResultContentEvent inEvent = (ResultContentEvent) event;
          double[] prediction = inEvent.getClassVotes();
          int instanceIndex = (int) inEvent.getInstanceIndex();
          
          addStatisticsForInstanceReceived(instanceIndex, inEvent.getClassifierIndex(), prediction, 1);
          //Boosting
          addPredictions(instanceIndex, inEvent, prediction);              
                 
          if (inEvent.isLastEvent() || hasAllVotesArrivedInstance(instanceIndex)) {
              DoubleVector combinedVote = this.mapVotesforInstanceReceived.get(instanceIndex);
              if (combinedVote == null){
                  combinedVote = new DoubleVector();
              }
              ResultContentEvent outContentEvent = new ResultContentEvent(inEvent.getInstanceIndex(),
                      inEvent.getInstance(), inEvent.getClassId(),
                      combinedVote.getArrayCopy(), inEvent.isLastEvent());
              outContentEvent.setEvaluationIndex(inEvent.getEvaluationIndex());
              outputStream.put(outContentEvent);
              clearStatisticsInstance(instanceIndex);
              //Boosting
              computeBoosting(inEvent, instanceIndex);
              return true;
          }
          return false;
  
      }
docs: On event.
  
  @param event the event
  @return true, if successful