for (Iterator iterator = configs.iterator(); iterator.hasNext();) {
ConfigurationInfo configInfo = (ConfigurationInfo) iterator.next();
Artifact configId = configInfo.getConfigID();
ConfigurationData configData = sourceConfigStore.loadConfiguration(configId);
if (targetConfigStore.containsConfiguration(configId)) {
targetConfigStore.uninstall(configId);
}
targetConfigStore.install(configData);
}
} catch (Exception e) {
e.printStackTrace();