Seems that we can benefit from the following helper function:
getEither(Configuration, String[] candidateParams, String default),
which iterates over candidateParams and return the first that is not blank, or returns the default.