public DataSource getDataSource(String datasourceName)
throws DataSourceException {
if (dataSources.containsKey(datasourceName)) {
return dataSources.get(datasourceName);
} else {
DataSource hsdfsDS = new ChukwaRecordDataSource();
dataSources.put(datasourceName, hsdfsDS);
return hsdfsDS;
// TODO proto only!
// throw new DataSourceException("Unknown datasource");
}