code: public boolean process(ContentEvent event) {
  		InstanceContentEvent inEvent = (InstanceContentEvent) event; //((s4Event) event).getContentEvent();
  		//InstanceEvent inEvent = (InstanceEvent) event;
  
  		if (inEvent.getInstanceIndex() < 0) {
  			// End learning
  			predictionStream.put(event);
  			return false;
  		}
  
  
                  if (inEvent.isTesting()){ 
  			Instance trainInst = inEvent.getInstance();
  			for (int i = 0; i < sizeEnsemble; i++) {
  				Instance weightedInst = trainInst.copy();
  				//weightedInst.setWeight(trainInst.weight() * k);
  				InstanceContentEvent instanceContentEvent = new InstanceContentEvent(
  						inEvent.getInstanceIndex(), weightedInst, false, true);
  				instanceContentEvent.setClassifierIndex(i);
  				instanceContentEvent.setEvaluationIndex(inEvent.getEvaluationIndex());	
  				predictionStream.put(instanceContentEvent);
  			}
  		}
                  
                  		/* Estimate model parameters using the training data. */
  		if (inEvent.isTraining()) {
  			train(inEvent);
  		} 
  		return false;
  	}
docs: On event.
  
  @param event the event
  @return true, if successful