ContextManager.getAnalysisStepService().save(theAnalysisStep);
Algorithm theAlgorithm;
String tb1Algorithm = an.getString("algorithm");
if (tb1Algorithm.equalsIgnoreCase("parsimony")) {
theAlgorithm = new ParsimonyAlgorithm();
} else if (tb1Algorithm.equalsIgnoreCase("bayesian")) {
theAlgorithm = new BayesianAlgorithm();
} else if (tb1Algorithm.equalsIgnoreCase("evolution")) {
theAlgorithm = new EvolutionAlgorithm();
} else if (tb1Algorithm.equalsIgnoreCase("joining")) {