throw new AnalystCodeGenerationError(
"MQL4 and Ninjascript can only be generated from Encog Analyst");
}
if (data != null) {
mainClass.embedTraining(data);
if (!(this.generator instanceof GenerateEncogJavaScript)) {
mainClass.generateLoadTraining(data);
}
}