code: public void startSendingEvents () {
  		if (this.getOutputStream() == null) 
  			throw new IllegalStateException("Try sending events from EntrancePI while outputStream is not set.");
  		
  		while (!this.getProcessor().isFinished()) {
              if (!this.injectNextEvent()) {
                  try {
                      waitForNewEvents();
                  } catch (Exception e) {
                      e.printStackTrace();
                      break;
                  }
              }
          }
  	}
docs: Start sending events by calling {@link #injectNextEvent()}. If there are no available events,
  and that the stream is not entirely consumed, it will wait by calling
  {@link #waitForNewEvents()} before attempting to send again.
  </p>
  When the stream is entirely consumed, the last event is tagged accordingly and the processor gets the
  finished status.