}
public void performScoring(Map<String, ScoringModel> supportedScoringModels) {
Collection<ScoringModelDeclaration> declarations = document.getDeclaredScoringModels();
if (declarations.isEmpty()) {
declarations = Collections.<ScoringModelDeclaration>singleton(new DefaultScoringModelDeclaration(DefaultScoringModel.DEFAULT_SCORING_MODEL));
}
for (ScoringModelDeclaration modelDeclaration : declarations) {
String system = modelDeclaration.getSystemId();
if (supportedScoringModels.containsKey(system)) {