 +             " as " + taskType + " on " + host);
 +    
 +    // Create a task description to pass back to Mesos.
-+    return TaskDescription.newBuilder()
++    return TaskInfo.newBuilder()
 +        .setTaskId(mesosId)
 +        .setSlaveId(slaveId)
 +        .setName("task " + mesosId.getValue() + " (" + taskType + ")")

+import org.apache.mesos.Protos.SlaveInfo;
+import org.apache.mesos.Protos.Status;
+import org.apache.mesos.Protos.TaskID;
+import org.apache.mesos.Protos.TaskDescription;
+import org.apache.mesos.Protos.TaskState;
+
+public class FrameworkExecutor implements Executor {

+import org.apache.mesos.Protos.SlaveID;
+import org.apache.mesos.Protos.Offer;
+import org.apache.mesos.Protos.TaskID;
+import org.apache.mesos.Protos.TaskInfo;
+import org.apache.mesos.Protos.TaskState;
+import org.apache.mesos.Protos.Status;
+import org.apache.mesos.Scheduler;
