// Copy the template configuration file into the working directory.
if (configFile.exists()) {
throw new OsmosisRuntimeException("Config file " + configFile + " already exists.");
}
resourceFileManager.copyResourceToFile(getClass(), CONFIG_RESOURCE, configFile);
// Create the data directory.
dataDirectory = new File(workingDirectory, DATA_DIRECTORY);
if (dataDirectory.exists()) {
throw new OsmosisRuntimeException("Data directory " + dataDirectory + " already exists.");