}
}
private ColumnPrinter makePrinterForConfiguration(ConfigurationFactory configurationFactory)
{
ConfigurationInspector configurationInspector = new ConfigurationInspector();
ColumnPrinter columnPrinter = new ColumnPrinter();
columnPrinter.addColumn(PROPERTY_NAME_COLUMN);
columnPrinter.addColumn(DEFAULT_VALUE_COLUMN);
columnPrinter.addColumn(CURRENT_VALUE_COLUMN);
columnPrinter.addColumn(DESCRIPTION_COLUMN);
for (ConfigRecord<?> record : configurationInspector.inspect(configurationFactory)) {
for (ConfigAttribute attribute : record.getAttributes()) {
columnPrinter.addValue(PROPERTY_NAME_COLUMN, attribute.getPropertyName());
columnPrinter.addValue(DEFAULT_VALUE_COLUMN, attribute.getDefaultValue());
columnPrinter.addValue(CURRENT_VALUE_COLUMN, attribute.getCurrentValue());
columnPrinter.addValue(DESCRIPTION_COLUMN, attribute.getDescription());