private void runLegacyChecks(AdminCommandContext context) { final Collection<LegacyConfigurationUpgrade> list = habitat.<LegacyConfigurationUpgrade>getAllServices(LegacyConfigurationUpgrade.class); for (LegacyConfigurationUpgrade upgrade : list) { upgrade.execute(context); } }