private AbstractScoreDirectorFactory buildSimpleScoreDirectorFactory() {
if (simpleScoreCalculator != null) {
return new SimpleScoreDirectorFactory(simpleScoreCalculator);
} else if (simpleScoreCalculatorClass != null) {
SimpleScoreCalculator simpleScoreCalculator;
try {
simpleScoreCalculator = simpleScoreCalculatorClass.newInstance();
} catch (InstantiationException e) {
throw new IllegalArgumentException("simpleScoreCalculatorClass (" + simpleScoreCalculatorClass.getName()
+ ") does not have a public no-arg constructor", e);