@Override
protected IDataSet loadDataSet(final Source source) throws DataSetException,
IOException {
if (source.getSourceFile().startsWith("classpath:")) {
final InputStream in = getClass().getResourceAsStream(source.getSourceFile().substring(10));
return new XlsDataSet(in);
} else {
final File file = new File(source.getSourceFile());
return new XlsDataSet(file);
}
}