Users often plug in their own scoreDefinition, at which point this code would crash.
Instead use scoreDefinition.parseScore(scoreString). I 've had need of the scoreDefinition before in the benchmarking code, so its definitely available somewhere.