{
File pluginUserSettingsFolder = _plugin.getPluginUserSettingsFolder();
File cfgsFile = new File(pluginUserSettingsFolder.getPath(), HIBERNATE_CONFIGS_XML_FILE);
XMLBeanWriter bw = new XMLBeanWriter();
ArrayList<HibernateConfiguration> buf = new ArrayList<HibernateConfiguration>();
for (int i = 0; i < _panel.cboConfigs.getItemCount(); i++)
{
HibernateConfiguration cfg = (HibernateConfiguration) _panel.cboConfigs.getItemAt(i);
bw.addToRoot(cfg);
buf.add(cfg);
}
bw.save(cfgsFile);
if(null != _hibernatePrefsListener)
{
_hibernatePrefsListener.configurationChanged(buf);
}