try {
File directoryFile = new File(directory);
if (!directoryFile.exists()) {
logger.log(INFO, "Creating database directory: " + directory);
if (!directoryFile.mkdirs()) {
throw new DataStoreException(
"Unable to create database directory: " + directory);
}
}
env = wrappedProps.getClassInstanceProperty(
ENVIRONMENT_CLASS_PROPERTY, DEFAULT_ENVIRONMENT_CLASS,