The discovery reveals how Arabica coffee got its sweet flavour and may help future-proof the drink.