public ScriptedProblem(File file) throws ScriptException, IOException {
  super();
  BufferedReader reader=null;
  try {
    reader=new BufferedReader(new FileReader(file));
    engine=newScriptEngine(file);
    internalProblem=createInvocableInstance(reader);
  }
  finally {
    if (reader != null) {
      reader.close();
    }
  }
}

public ScriptedProblem ( File file ) throws ScriptException , IOException { super ( ) ; BufferedReader reader = null ; try { reader = new BufferedReader ( new FileReader ( file ) ) ; engine = newScriptEngine ( file ) ; internalProblem = createInvocableInstance ( reader ) ; } finally { if ( reader != null ) { reader . close ( ) ; } } }
constructs a new problem implemented in a scripting language .
