package org.robotframework;

import org.python.core.PyObject;
import org.python.util.PythonInterpreter;

public class RunnerFactory {

    private PyObject runnerClass;

    public RunnerFactory() {
        runnerClass = importRunnerClass();
    }
    
	private PyObject importRunnerClass() {
		PythonInterpreter interpreter = new PythonInterpreter();
        interpreter.exec("import robot; from robot.jarrunner import JarRunner");
        return interpreter.get("JarRunner");
	}

    public RobotRunner createRunner() {
        PyObject runnerObject = runnerClass.__call__();
        return (RobotRunner)runnerObject.__tojava__(RobotRunner.class);
    }
}

@@ -245,14 +245,13 @@
   %7D%0A
+%0A
     
-%0A%09
 priv
@@ -289,10 +289,16 @@
 ) %7B%0A
-%09%09
+        
 Pyth
@@ -480,9 +480,12 @@
 %22);%0A
-%09
+    
 %7D%0A%0A 
@@ -575,24 +575,24 @@
 __call__();%0A
-
         retu
@@ -607,16 +607,17 @@
 tRunner)
+ 
 runnerOb

whitespace clenaup