class Scorer {

    public int score(Project project) {
        
        String jsCode = "";
        jsCode += "var scoring = " + scoringProject + ";\n";
        jsCode += "result.value = scoring(project);";
        
        return ((Number) newExecutor(jsCode).bind("project", project).execute()).intValue();
    }

}