I'm sure you could have written a method that takes an array of strings and searches in order to see if the ResourceBundle contains it as a key returning the value. Particularly seeing as the logic is duplicated below