public String getSourcePath(JobConf conf) {
VersionedStore store;
try {
store = getStore(conf);
String sourcePath = (version != null) ? store.versionPath(version) : store.mostRecentVersionPath();
if (sourcePath == null) {
throw new RuntimeException("Could not find valid source path for VersionTap with root: " + store.getRoot());
}
return sourcePath;
} catch (IOException e) {