} else {
URL url = this.getClass().getResource(filename);
if (url == null) {
final String msg = "Could not find file named=" + filename;
throw new DatabaseUnitRuntimeException(msg);
}
try {
ds = loadDataSet(url);
ds = processReplacementTokens(ds);
} catch (DataSetException e) {
final String msg =
"DataSetException occurred loading data set file name='"
+ filename + "', msg='"
+ e.getLocalizedMessage() + "'";
throw new DatabaseUnitRuntimeException(msg, e);
} catch (IOException e) {
final String msg =
"IOException occurred loading data set file name='"
+ filename + '\'' + ", msg='"
+ e.getLocalizedMessage() + "'";
throw new DatabaseUnitRuntimeException(msg, e);
}
}
return ds;
}