File configConfigDir = new File(env.getConfigDirPath(),
configName);
for (Config c : configs.getConfig()) {
File existingConfigConfigDir = new File(env.getConfigDirPath(), c.getName());
if (!c.getName().equals(configName) && configConfigDir.equals(existingConfigConfigDir)) {
throw new TransactionFailure(localStrings.getLocalString(
"config.duplicate.dir",
"Config {0} is trying to use the same directory as config {1}",
configName, c.getName()));
}
}