Somedays you come across some code and think that’s pretty, why didn’t I think of that? So my long time colleague Mark Warner has a nice twist on the standard name/value store pattern using method references to deal with converting from a String. int size = store.getProperty("cache.limit", 500, Integer::parseInt); boolean enabled = store.getProperty("cache.enabled", true, Boolean::getBoolean); ...