If we can't find an alternative in guava etc for this, let's add a method in ConfigUtils or a new Utils class.