try {
File tempDir = tempFolder.newFolder();
BundleJarUtil.unpackProgramJar(deployedJar, tempDir);
ProgramClassLoader classLoader = ClassLoaders.newProgramClassLoader
(tempDir, ApiResourceListHolder.getResourceList(), this.getClass().getClassLoader());
this.dataSetInstantiator = new DataSetInstantiator(datasetFramework, configuration,
new DataSetClassLoader(classLoader),
// todo: collect metrics for datasets outside programs too
null, null);
} catch (IOException e) {
throw Throwables.propagate(e);