class BareMetalRemovalUpdater {

    public void findAndUpdateRowsThatReferenceBareMetal(final ResultSet values, final List<Map<String, String>> updatedRows) throws SQLException {
        while (values.next()) {
            final String value = values.getString(VALUE);
            if (value != null && hasReferenceToBareMetal(value)) {
                final String category = values.getString(CATEGORY);
                final String instance = values.getString(INSTANCE);
                final String component = values.getString(COMPONENT);
                final String name = values.getString(NAME);
                logger.info("Found one configuration item that references BareMetal: " + printConfigurationItem(category, instance, component, name, value));
                final HashMap<String, String> updatedRow = createUpdatedRow(category, instance, component, name, createUpdatedValue(value));
                updatedRows.add(updatedRow);
            }
        }
    }

}