If you wanted to make this a general-purpose utility, it would be nice to have a depth limit parameter and/or keep track of already printed objects and not print them again. But since this is only meant for Configuration objects, I think it's fine as it is.