public static ModuleDefinition defineNewModule(Configuration cfg, Messenger reporter)
{
List<PluginItem> plugins = new Vector<PluginItem>();
for (String name : cfg.getModuleResourcePlugins().keySet())
{
ModuleResourcePlugin plugin = cfg.getModuleResourcePlugin(name);
if (plugin.supportsInteractiveModuleSelection())
plugins.add(new PluginItem(name,plugin));
}
PluginItem selected = (PluginItem)JOptionPane.showInputDialog(null,
"What kind of module do you want to load?",