statement.setString(1, anIdentity.streamName());
statement.setInt(2, anIdentity.streamVersion());
result = statement.executeQuery();
EventStream eventStream = this.buildEventStream(result);
if (eventStream.version() == 0) {
throw new EventStoreException(
"There is no such event stream: "
+ anIdentity.streamName()
+ " : "
+ anIdentity.streamVersion());