if (dataDirectoryCounter > 0)
name += dataDirectoryCounter;
dataDirectory = new File(TESTDIR, name);
if (dataDirectory.exists()) {
if (!dataDirectory.isDirectory()) {
throw new ConfigurationPropertiesLoadException(dataDirectory.getName(), " it exists but isn't a directory");
}
} else {
if (!dataDirectory.mkdirs()) {
throw new ConfigurationPropertiesLoadException(dataDirectory.getName(), " it couldn't be created");
}
dataDirectory.deleteOnExit();
}
}