int sampleSize = Integer.parseInt(sampleSizeTextField.getText());
int sampleRepeat = Integer.parseInt(sampleRepeatTextField.getText());
numberOfCategories = Integer.parseInt(numberOfCategoriesStr);
if(!serverUrl.equalsIgnoreCase("test")){
// mDataStream = new RealDataStream(new URL(serverUrl), sampleSize, sampleRepeat);
mDataStream = new SQLDataStream(serverUrl,sampleSize, sampleRepeat,sqlEditor.getText());
}
else{
mDataStream = new TestDataStream(sampleSize);
}