//JVM via this method. However when a new task is launched
//the task being returned has to be initialized.
TaskRunner taskRunner = jvmToRunningTask.get(jvmId);
JvmRunner jvmRunner = jvmIdToRunner.get(jvmId);
Task task = taskRunner.getTaskInProgress().getTask();
TaskControllerContext context =
new TaskController.TaskControllerContext();
context.env = jvmRunner.env;
context.task = task;
//If we are returning the same task as which the JVM was launched
//we don't initialize task once again.