if (type.equals("http")) {
String url = getProperty(prop, "dataSource.url", getPrimaryServerUrl());
mDataSource = new HttpDataSource(url);
} else if (type.equals("file")) {
String dir = getProperty(prop, "dataSource.dir");
mDataSource = new FileDataSource(new File(dir));
} else {
throw new UpdateException("dataSource.type must be either 'http' or 'file'");
}
}
catch (Exception exc) {