code: public void setStreamSource(InstanceStream stream) {
  		this.streamSource = new StreamSource(stream);
  		firstInstance = streamSource.nextInstance().getData();
  	}
docs: Sets the stream source.
  
  @param stream the new stream source