private void confirmNonExistingReference(String aReferenceKey) {
// this implementation will not stand up to race conditions
if (this.database().get(aReferenceKey.getBytes()) != null) {
throw new EventStoreAppendException("Journal concurrency violation.");
}
}