code: public List<NodeEvent> getAndClearEventslist() {
  		ArrayList<NodeEvent> result = new ArrayList<NodeEvent>(eventslist);
  		eventslist.clear();
  		return result;
  	}
docs: Gets the copy of the buffer and clears the buffer.
  
  @return - the copy of events since the last call of this method.