Check if an entry with the given key (name) already exists and throw in that case an exception.