if (datasetName == null) {
throw new IOException("Dataset name property could not be found.");
}
try {
DatasetFramework framework = context.getDatasetFramework();
ClassLoader classLoader = DATASET_CLASSLOADERS.get(datasetName);
Dataset dataset;
if (classLoader == null) {
if (conf == null) {
throw new NullJobConfException();
}
classLoader = conf.getClassLoader();
dataset = firstLoad(framework, datasetName, classLoader);
} else {
dataset = framework.getDataset(datasetName, DatasetDefinition.NO_ARGUMENTS, classLoader);
}
return dataset;
} catch (DatasetManagementException e) {
throw new IOException(e);
} finally {