*/
private void initializeDirectory() {
File configFile;
File dataDirectory;
ResourceFileManager resourceFileManager;
// Instantiate utility objects.
resourceFileManager = new ResourceFileManager();
// Build file objects from file names.
configFile = new File(workingDirectory, CONFIG_FILE_NAME);
// 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.");