http://git-wip-us.apache.org/repos/asf/zeppelin/blob/9463fb85/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java
----------------------------------------------------------------------
diff --git 
a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java
 
b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java
index 0c1385f..e3ddeeb 100644
--- 
a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java
+++ 
b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java
@@ -96,6 +96,12 @@ public class RemoteInterpreterService {
 
     public void angularRegistryPush(String registry) throws 
org.apache.thrift.TException;
 
+    public RemoteApplicationResult loadApplication(String 
applicationInstanceId, String packageInfo, String noteId, String paragraphId) 
throws org.apache.thrift.TException;
+
+    public RemoteApplicationResult unloadApplication(String 
applicationInstanceId) throws org.apache.thrift.TException;
+
+    public RemoteApplicationResult runApplication(String 
applicationInstanceId) throws org.apache.thrift.TException;
+
   }
 
   public interface AsyncIface {
@@ -140,6 +146,12 @@ public class RemoteInterpreterService {
 
     public void angularRegistryPush(String registry, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
 
+    public void loadApplication(String applicationInstanceId, String 
packageInfo, String noteId, String paragraphId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
+
+    public void unloadApplication(String applicationInstanceId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
+
+    public void runApplication(String applicationInstanceId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
+
   }
 
   public static class Client extends org.apache.thrift.TServiceClient 
implements Iface {
@@ -616,6 +628,78 @@ public class RemoteInterpreterService {
       return;
     }
 
+    public RemoteApplicationResult loadApplication(String 
applicationInstanceId, String packageInfo, String noteId, String paragraphId) 
throws org.apache.thrift.TException
+    {
+      send_loadApplication(applicationInstanceId, packageInfo, noteId, 
paragraphId);
+      return recv_loadApplication();
+    }
+
+    public void send_loadApplication(String applicationInstanceId, String 
packageInfo, String noteId, String paragraphId) throws 
org.apache.thrift.TException
+    {
+      loadApplication_args args = new loadApplication_args();
+      args.setApplicationInstanceId(applicationInstanceId);
+      args.setPackageInfo(packageInfo);
+      args.setNoteId(noteId);
+      args.setParagraphId(paragraphId);
+      sendBase("loadApplication", args);
+    }
+
+    public RemoteApplicationResult recv_loadApplication() throws 
org.apache.thrift.TException
+    {
+      loadApplication_result result = new loadApplication_result();
+      receiveBase(result, "loadApplication");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "loadApplication failed: unknown result");
+    }
+
+    public RemoteApplicationResult unloadApplication(String 
applicationInstanceId) throws org.apache.thrift.TException
+    {
+      send_unloadApplication(applicationInstanceId);
+      return recv_unloadApplication();
+    }
+
+    public void send_unloadApplication(String applicationInstanceId) throws 
org.apache.thrift.TException
+    {
+      unloadApplication_args args = new unloadApplication_args();
+      args.setApplicationInstanceId(applicationInstanceId);
+      sendBase("unloadApplication", args);
+    }
+
+    public RemoteApplicationResult recv_unloadApplication() throws 
org.apache.thrift.TException
+    {
+      unloadApplication_result result = new unloadApplication_result();
+      receiveBase(result, "unloadApplication");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "unloadApplication failed: unknown result");
+    }
+
+    public RemoteApplicationResult runApplication(String 
applicationInstanceId) throws org.apache.thrift.TException
+    {
+      send_runApplication(applicationInstanceId);
+      return recv_runApplication();
+    }
+
+    public void send_runApplication(String applicationInstanceId) throws 
org.apache.thrift.TException
+    {
+      runApplication_args args = new runApplication_args();
+      args.setApplicationInstanceId(applicationInstanceId);
+      sendBase("runApplication", args);
+    }
+
+    public RemoteApplicationResult recv_runApplication() throws 
org.apache.thrift.TException
+    {
+      runApplication_result result = new runApplication_result();
+      receiveBase(result, "runApplication");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "runApplication failed: unknown result");
+    }
+
   }
   public static class AsyncClient extends org.apache.thrift.async.TAsyncClient 
implements AsyncIface {
     public static class Factory implements 
org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
@@ -1355,6 +1439,111 @@ public class RemoteInterpreterService {
       }
     }
 
+    public void loadApplication(String applicationInstanceId, String 
packageInfo, String noteId, String paragraphId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException {
+      checkReady();
+      loadApplication_call method_call = new 
loadApplication_call(applicationInstanceId, packageInfo, noteId, paragraphId, 
resultHandler, this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class loadApplication_call extends 
org.apache.thrift.async.TAsyncMethodCall {
+      private String applicationInstanceId;
+      private String packageInfo;
+      private String noteId;
+      private String paragraphId;
+      public loadApplication_call(String applicationInstanceId, String 
packageInfo, String noteId, String paragraphId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler, 
org.apache.thrift.async.TAsyncClient client, 
org.apache.thrift.protocol.TProtocolFactory protocolFactory, 
org.apache.thrift.transport.TNonblockingTransport transport) throws 
org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.applicationInstanceId = applicationInstanceId;
+        this.packageInfo = packageInfo;
+        this.noteId = noteId;
+        this.paragraphId = paragraphId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws 
org.apache.thrift.TException {
+        prot.writeMessageBegin(new 
org.apache.thrift.protocol.TMessage("loadApplication", 
org.apache.thrift.protocol.TMessageType.CALL, 0));
+        loadApplication_args args = new loadApplication_args();
+        args.setApplicationInstanceId(applicationInstanceId);
+        args.setPackageInfo(packageInfo);
+        args.setNoteId(noteId);
+        args.setParagraphId(paragraphId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public RemoteApplicationResult getResult() throws 
org.apache.thrift.TException {
+        if (getState() != 
org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = 
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = 
client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_loadApplication();
+      }
+    }
+
+    public void unloadApplication(String applicationInstanceId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException {
+      checkReady();
+      unloadApplication_call method_call = new 
unloadApplication_call(applicationInstanceId, resultHandler, this, 
___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class unloadApplication_call extends 
org.apache.thrift.async.TAsyncMethodCall {
+      private String applicationInstanceId;
+      public unloadApplication_call(String applicationInstanceId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler, 
org.apache.thrift.async.TAsyncClient client, 
org.apache.thrift.protocol.TProtocolFactory protocolFactory, 
org.apache.thrift.transport.TNonblockingTransport transport) throws 
org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.applicationInstanceId = applicationInstanceId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws 
org.apache.thrift.TException {
+        prot.writeMessageBegin(new 
org.apache.thrift.protocol.TMessage("unloadApplication", 
org.apache.thrift.protocol.TMessageType.CALL, 0));
+        unloadApplication_args args = new unloadApplication_args();
+        args.setApplicationInstanceId(applicationInstanceId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public RemoteApplicationResult getResult() throws 
org.apache.thrift.TException {
+        if (getState() != 
org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = 
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = 
client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_unloadApplication();
+      }
+    }
+
+    public void runApplication(String applicationInstanceId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException {
+      checkReady();
+      runApplication_call method_call = new 
runApplication_call(applicationInstanceId, resultHandler, this, 
___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class runApplication_call extends 
org.apache.thrift.async.TAsyncMethodCall {
+      private String applicationInstanceId;
+      public runApplication_call(String applicationInstanceId, 
org.apache.thrift.async.AsyncMethodCallback resultHandler, 
org.apache.thrift.async.TAsyncClient client, 
org.apache.thrift.protocol.TProtocolFactory protocolFactory, 
org.apache.thrift.transport.TNonblockingTransport transport) throws 
org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.applicationInstanceId = applicationInstanceId;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws 
org.apache.thrift.TException {
+        prot.writeMessageBegin(new 
org.apache.thrift.protocol.TMessage("runApplication", 
org.apache.thrift.protocol.TMessageType.CALL, 0));
+        runApplication_args args = new runApplication_args();
+        args.setApplicationInstanceId(applicationInstanceId);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public RemoteApplicationResult getResult() throws 
org.apache.thrift.TException {
+        if (getState() != 
org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = 
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = 
client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_runApplication();
+      }
+    }
+
   }
 
   public static class Processor<I extends Iface> extends 
org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
@@ -1388,6 +1577,9 @@ public class RemoteInterpreterService {
       processMap.put("angularObjectAdd", new angularObjectAdd());
       processMap.put("angularObjectRemove", new angularObjectRemove());
       processMap.put("angularRegistryPush", new angularRegistryPush());
+      processMap.put("loadApplication", new loadApplication());
+      processMap.put("unloadApplication", new unloadApplication());
+      processMap.put("runApplication", new runApplication());
       return processMap;
     }
 
@@ -1793,6 +1985,66 @@ public class RemoteInterpreterService {
       }
     }
 
+    public static class loadApplication<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, loadApplication_args> {
+      public loadApplication() {
+        super("loadApplication");
+      }
+
+      public loadApplication_args getEmptyArgsInstance() {
+        return new loadApplication_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public loadApplication_result getResult(I iface, loadApplication_args 
args) throws org.apache.thrift.TException {
+        loadApplication_result result = new loadApplication_result();
+        result.success = iface.loadApplication(args.applicationInstanceId, 
args.packageInfo, args.noteId, args.paragraphId);
+        return result;
+      }
+    }
+
+    public static class unloadApplication<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, unloadApplication_args> {
+      public unloadApplication() {
+        super("unloadApplication");
+      }
+
+      public unloadApplication_args getEmptyArgsInstance() {
+        return new unloadApplication_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public unloadApplication_result getResult(I iface, 
unloadApplication_args args) throws org.apache.thrift.TException {
+        unloadApplication_result result = new unloadApplication_result();
+        result.success = iface.unloadApplication(args.applicationInstanceId);
+        return result;
+      }
+    }
+
+    public static class runApplication<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, runApplication_args> {
+      public runApplication() {
+        super("runApplication");
+      }
+
+      public runApplication_args getEmptyArgsInstance() {
+        return new runApplication_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public runApplication_result getResult(I iface, runApplication_args 
args) throws org.apache.thrift.TException {
+        runApplication_result result = new runApplication_result();
+        result.success = iface.runApplication(args.applicationInstanceId);
+        return result;
+      }
+    }
+
   }
 
   public static class AsyncProcessor<I extends AsyncIface> extends 
org.apache.thrift.TBaseAsyncProcessor<I> {
@@ -1826,6 +2078,9 @@ public class RemoteInterpreterService {
       processMap.put("angularObjectAdd", new angularObjectAdd());
       processMap.put("angularObjectRemove", new angularObjectRemove());
       processMap.put("angularRegistryPush", new angularRegistryPush());
+      processMap.put("loadApplication", new loadApplication());
+      processMap.put("unloadApplication", new unloadApplication());
+      processMap.put("runApplication", new runApplication());
       return processMap;
     }
 
@@ -2840,98 +3095,251 @@ public class RemoteInterpreterService {
       }
     }
 
-  }
-
-  public static class createInterpreter_args implements 
org.apache.thrift.TBase<createInterpreter_args, 
createInterpreter_args._Fields>, java.io.Serializable, Cloneable, 
Comparable<createInterpreter_args>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("createInterpreter_args");
-
-    private static final org.apache.thrift.protocol.TField 
INTP_GROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("intpGroupId", 
org.apache.thrift.protocol.TType.STRING, (short)1);
-    private static final org.apache.thrift.protocol.TField NOTE_ID_FIELD_DESC 
= new org.apache.thrift.protocol.TField("noteId", 
org.apache.thrift.protocol.TType.STRING, (short)2);
-    private static final org.apache.thrift.protocol.TField 
CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("className", 
org.apache.thrift.protocol.TType.STRING, (short)3);
-    private static final org.apache.thrift.protocol.TField 
PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", 
org.apache.thrift.protocol.TType.MAP, (short)4);
-
-    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
-    static {
-      schemes.put(StandardScheme.class, new 
createInterpreter_argsStandardSchemeFactory());
-      schemes.put(TupleScheme.class, new 
createInterpreter_argsTupleSchemeFactory());
-    }
-
-    public String intpGroupId; // required
-    public String noteId; // required
-    public String className; // required
-    public Map<String,String> properties; // required
-
-    /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
-    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-      INTP_GROUP_ID((short)1, "intpGroupId"),
-      NOTE_ID((short)2, "noteId"),
-      CLASS_NAME((short)3, "className"),
-      PROPERTIES((short)4, "properties");
-
-      private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
-
-      static {
-        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-          byName.put(field.getFieldName(), field);
-        }
+    public static class loadApplication<I extends AsyncIface> extends 
org.apache.thrift.AsyncProcessFunction<I, loadApplication_args, 
RemoteApplicationResult> {
+      public loadApplication() {
+        super("loadApplication");
       }
 
-      /**
-       * Find the _Fields constant that matches fieldId, or null if its not 
found.
-       */
-      public static _Fields findByThriftId(int fieldId) {
-        switch(fieldId) {
-          case 1: // INTP_GROUP_ID
-            return INTP_GROUP_ID;
-          case 2: // NOTE_ID
-            return NOTE_ID;
-          case 3: // CLASS_NAME
-            return CLASS_NAME;
-          case 4: // PROPERTIES
-            return PROPERTIES;
-          default:
-            return null;
-        }
+      public loadApplication_args getEmptyArgsInstance() {
+        return new loadApplication_args();
       }
 
-      /**
-       * Find the _Fields constant that matches fieldId, throwing an exception
-       * if it is not found.
-       */
-      public static _Fields findByThriftIdOrThrow(int fieldId) {
-        _Fields fields = findByThriftId(fieldId);
-        if (fields == null) throw new IllegalArgumentException("Field " + 
fieldId + " doesn't exist!");
-        return fields;
+      public AsyncMethodCallback<RemoteApplicationResult> 
getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<RemoteApplicationResult>() { 
+          public void onComplete(RemoteApplicationResult o) {
+            loadApplication_result result = new loadApplication_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            loadApplication_result result = new loadApplication_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,
 e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
       }
 
-      /**
-       * Find the _Fields constant that matches name, or null if its not found.
-       */
-      public static _Fields findByName(String name) {
-        return byName.get(name);
+      protected boolean isOneway() {
+        return false;
       }
 
-      private final short _thriftId;
-      private final String _fieldName;
-
-      _Fields(short thriftId, String fieldName) {
-        _thriftId = thriftId;
-        _fieldName = fieldName;
+      public void start(I iface, loadApplication_args args, 
org.apache.thrift.async.AsyncMethodCallback<RemoteApplicationResult> 
resultHandler) throws TException {
+        iface.loadApplication(args.applicationInstanceId, args.packageInfo, 
args.noteId, args.paragraphId,resultHandler);
       }
+    }
 
-      public short getThriftFieldId() {
-        return _thriftId;
+    public static class unloadApplication<I extends AsyncIface> extends 
org.apache.thrift.AsyncProcessFunction<I, unloadApplication_args, 
RemoteApplicationResult> {
+      public unloadApplication() {
+        super("unloadApplication");
       }
 
-      public String getFieldName() {
-        return _fieldName;
+      public unloadApplication_args getEmptyArgsInstance() {
+        return new unloadApplication_args();
       }
-    }
 
-    // isset id assignments
-    public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-    static {
-      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+      public AsyncMethodCallback<RemoteApplicationResult> 
getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<RemoteApplicationResult>() { 
+          public void onComplete(RemoteApplicationResult o) {
+            unloadApplication_result result = new unloadApplication_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            unloadApplication_result result = new unloadApplication_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,
 e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, unloadApplication_args args, 
org.apache.thrift.async.AsyncMethodCallback<RemoteApplicationResult> 
resultHandler) throws TException {
+        iface.unloadApplication(args.applicationInstanceId,resultHandler);
+      }
+    }
+
+    public static class runApplication<I extends AsyncIface> extends 
org.apache.thrift.AsyncProcessFunction<I, runApplication_args, 
RemoteApplicationResult> {
+      public runApplication() {
+        super("runApplication");
+      }
+
+      public runApplication_args getEmptyArgsInstance() {
+        return new runApplication_args();
+      }
+
+      public AsyncMethodCallback<RemoteApplicationResult> 
getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<RemoteApplicationResult>() { 
+          public void onComplete(RemoteApplicationResult o) {
+            runApplication_result result = new runApplication_result();
+            result.success = o;
+            try {
+              fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            runApplication_result result = new runApplication_result();
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,
 e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, runApplication_args args, 
org.apache.thrift.async.AsyncMethodCallback<RemoteApplicationResult> 
resultHandler) throws TException {
+        iface.runApplication(args.applicationInstanceId,resultHandler);
+      }
+    }
+
+  }
+
+  public static class createInterpreter_args implements 
org.apache.thrift.TBase<createInterpreter_args, 
createInterpreter_args._Fields>, java.io.Serializable, Cloneable, 
Comparable<createInterpreter_args>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("createInterpreter_args");
+
+    private static final org.apache.thrift.protocol.TField 
INTP_GROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("intpGroupId", 
org.apache.thrift.protocol.TType.STRING, (short)1);
+    private static final org.apache.thrift.protocol.TField NOTE_ID_FIELD_DESC 
= new org.apache.thrift.protocol.TField("noteId", 
org.apache.thrift.protocol.TType.STRING, (short)2);
+    private static final org.apache.thrift.protocol.TField 
CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("className", 
org.apache.thrift.protocol.TType.STRING, (short)3);
+    private static final org.apache.thrift.protocol.TField 
PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", 
org.apache.thrift.protocol.TType.MAP, (short)4);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new 
createInterpreter_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
createInterpreter_argsTupleSchemeFactory());
+    }
+
+    public String intpGroupId; // required
+    public String noteId; // required
+    public String className; // required
+    public Map<String,String> properties; // required
+
+    /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
+    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+      INTP_GROUP_ID((short)1, "intpGroupId"),
+      NOTE_ID((short)2, "noteId"),
+      CLASS_NAME((short)3, "className"),
+      PROPERTIES((short)4, "properties");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
+
+      static {
+        for (_Fields field : EnumSet.allOf(_Fields.class)) {
+          byName.put(field.getFieldName(), field);
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, or null if its not 
found.
+       */
+      public static _Fields findByThriftId(int fieldId) {
+        switch(fieldId) {
+          case 1: // INTP_GROUP_ID
+            return INTP_GROUP_ID;
+          case 2: // NOTE_ID
+            return NOTE_ID;
+          case 3: // CLASS_NAME
+            return CLASS_NAME;
+          case 4: // PROPERTIES
+            return PROPERTIES;
+          default:
+            return null;
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, throwing an exception
+       * if it is not found.
+       */
+      public static _Fields findByThriftIdOrThrow(int fieldId) {
+        _Fields fields = findByThriftId(fieldId);
+        if (fields == null) throw new IllegalArgumentException("Field " + 
fieldId + " doesn't exist!");
+        return fields;
+      }
+
+      /**
+       * Find the _Fields constant that matches name, or null if its not found.
+       */
+      public static _Fields findByName(String name) {
+        return byName.get(name);
+      }
+
+      private final short _thriftId;
+      private final String _fieldName;
+
+      _Fields(short thriftId, String fieldName) {
+        _thriftId = thriftId;
+        _fieldName = fieldName;
+      }
+
+      public short getThriftFieldId() {
+        return _thriftId;
+      }
+
+      public String getFieldName() {
+        return _fieldName;
+      }
+    }
+
+    // isset id assignments
+    public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+    static {
+      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
       tmpMap.put(_Fields.INTP_GROUP_ID, new 
org.apache.thrift.meta_data.FieldMetaData("intpGroupId", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       tmpMap.put(_Fields.NOTE_ID, new 
org.apache.thrift.meta_data.FieldMetaData("noteId", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
@@ -19097,4 +19505,2500 @@ public class RemoteInterpreterService {
 
   }
 
+  public static class loadApplication_args implements 
org.apache.thrift.TBase<loadApplication_args, loadApplication_args._Fields>, 
java.io.Serializable, Cloneable, Comparable<loadApplication_args>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("loadApplication_args");
+
+    private static final org.apache.thrift.protocol.TField 
APPLICATION_INSTANCE_ID_FIELD_DESC = new 
org.apache.thrift.protocol.TField("applicationInstanceId", 
org.apache.thrift.protocol.TType.STRING, (short)1);
+    private static final org.apache.thrift.protocol.TField 
PACKAGE_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("packageInfo", 
org.apache.thrift.protocol.TType.STRING, (short)2);
+    private static final org.apache.thrift.protocol.TField NOTE_ID_FIELD_DESC 
= new org.apache.thrift.protocol.TField("noteId", 
org.apache.thrift.protocol.TType.STRING, (short)3);
+    private static final org.apache.thrift.protocol.TField 
PARAGRAPH_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paragraphId", 
org.apache.thrift.protocol.TType.STRING, (short)4);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new 
loadApplication_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
loadApplication_argsTupleSchemeFactory());
+    }
+
+    public String applicationInstanceId; // required
+    public String packageInfo; // required
+    public String noteId; // required
+    public String paragraphId; // required
+
+    /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
+    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+      APPLICATION_INSTANCE_ID((short)1, "applicationInstanceId"),
+      PACKAGE_INFO((short)2, "packageInfo"),
+      NOTE_ID((short)3, "noteId"),
+      PARAGRAPH_ID((short)4, "paragraphId");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
+
+      static {
+        for (_Fields field : EnumSet.allOf(_Fields.class)) {
+          byName.put(field.getFieldName(), field);
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, or null if its not 
found.
+       */
+      public static _Fields findByThriftId(int fieldId) {
+        switch(fieldId) {
+          case 1: // APPLICATION_INSTANCE_ID
+            return APPLICATION_INSTANCE_ID;
+          case 2: // PACKAGE_INFO
+            return PACKAGE_INFO;
+          case 3: // NOTE_ID
+            return NOTE_ID;
+          case 4: // PARAGRAPH_ID
+            return PARAGRAPH_ID;
+          default:
+            return null;
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, throwing an exception
+       * if it is not found.
+       */
+      public static _Fields findByThriftIdOrThrow(int fieldId) {
+        _Fields fields = findByThriftId(fieldId);
+        if (fields == null) throw new IllegalArgumentException("Field " + 
fieldId + " doesn't exist!");
+        return fields;
+      }
+
+      /**
+       * Find the _Fields constant that matches name, or null if its not found.
+       */
+      public static _Fields findByName(String name) {
+        return byName.get(name);
+      }
+
+      private final short _thriftId;
+      private final String _fieldName;
+
+      _Fields(short thriftId, String fieldName) {
+        _thriftId = thriftId;
+        _fieldName = fieldName;
+      }
+
+      public short getThriftFieldId() {
+        return _thriftId;
+      }
+
+      public String getFieldName() {
+        return _fieldName;
+      }
+    }
+
+    // isset id assignments
+    public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+    static {
+      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+      tmpMap.put(_Fields.APPLICATION_INSTANCE_ID, new 
org.apache.thrift.meta_data.FieldMetaData("applicationInstanceId", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+      tmpMap.put(_Fields.PACKAGE_INFO, new 
org.apache.thrift.meta_data.FieldMetaData("packageInfo", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+      tmpMap.put(_Fields.NOTE_ID, new 
org.apache.thrift.meta_data.FieldMetaData("noteId", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+      tmpMap.put(_Fields.PARAGRAPH_ID, new 
org.apache.thrift.meta_data.FieldMetaData("paragraphId", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(loadApplication_args.class,
 metaDataMap);
+    }
+
+    public loadApplication_args() {
+    }
+
+    public loadApplication_args(
+      String applicationInstanceId,
+      String packageInfo,
+      String noteId,
+      String paragraphId)
+    {
+      this();
+      this.applicationInstanceId = applicationInstanceId;
+      this.packageInfo = packageInfo;
+      this.noteId = noteId;
+      this.paragraphId = paragraphId;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public loadApplication_args(loadApplication_args other) {
+      if (other.isSetApplicationInstanceId()) {
+        this.applicationInstanceId = other.applicationInstanceId;
+      }
+      if (other.isSetPackageInfo()) {
+        this.packageInfo = other.packageInfo;
+      }
+      if (other.isSetNoteId()) {
+        this.noteId = other.noteId;
+      }
+      if (other.isSetParagraphId()) {
+        this.paragraphId = other.paragraphId;
+      }
+    }
+
+    public loadApplication_args deepCopy() {
+      return new loadApplication_args(this);
+    }
+
+    @Override
+    public void clear() {
+      this.applicationInstanceId = null;
+      this.packageInfo = null;
+      this.noteId = null;
+      this.paragraphId = null;
+    }
+
+    public String getApplicationInstanceId() {
+      return this.applicationInstanceId;
+    }
+
+    public loadApplication_args setApplicationInstanceId(String 
applicationInstanceId) {
+      this.applicationInstanceId = applicationInstanceId;
+      return this;
+    }
+
+    public void unsetApplicationInstanceId() {
+      this.applicationInstanceId = null;
+    }
+
+    /** Returns true if field applicationInstanceId is set (has been assigned 
a value) and false otherwise */
+    public boolean isSetApplicationInstanceId() {
+      return this.applicationInstanceId != null;
+    }
+
+    public void setApplicationInstanceIdIsSet(boolean value) {
+      if (!value) {
+        this.applicationInstanceId = null;
+      }
+    }
+
+    public String getPackageInfo() {
+      return this.packageInfo;
+    }
+
+    public loadApplication_args setPackageInfo(String packageInfo) {
+      this.packageInfo = packageInfo;
+      return this;
+    }
+
+    public void unsetPackageInfo() {
+      this.packageInfo = null;
+    }
+
+    /** Returns true if field packageInfo is set (has been assigned a value) 
and false otherwise */
+    public boolean isSetPackageInfo() {
+      return this.packageInfo != null;
+    }
+
+    public void setPackageInfoIsSet(boolean value) {
+      if (!value) {
+        this.packageInfo = null;
+      }
+    }
+
+    public String getNoteId() {
+      return this.noteId;
+    }
+
+    public loadApplication_args setNoteId(String noteId) {
+      this.noteId = noteId;
+      return this;
+    }
+
+    public void unsetNoteId() {
+      this.noteId = null;
+    }
+
+    /** Returns true if field noteId is set (has been assigned a value) and 
false otherwise */
+    public boolean isSetNoteId() {
+      return this.noteId != null;
+    }
+
+    public void setNoteIdIsSet(boolean value) {
+      if (!value) {
+        this.noteId = null;
+      }
+    }
+
+    public String getParagraphId() {
+      return this.paragraphId;
+    }
+
+    public loadApplication_args setParagraphId(String paragraphId) {
+      this.paragraphId = paragraphId;
+      return this;
+    }
+
+    public void unsetParagraphId() {
+      this.paragraphId = null;
+    }
+
+    /** Returns true if field paragraphId is set (has been assigned a value) 
and false otherwise */
+    public boolean isSetParagraphId() {
+      return this.paragraphId != null;
+    }
+
+    public void setParagraphIdIsSet(boolean value) {
+      if (!value) {
+        this.paragraphId = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case APPLICATION_INSTANCE_ID:
+        if (value == null) {
+          unsetApplicationInstanceId();
+        } else {
+          setApplicationInstanceId((String)value);
+        }
+        break;
+
+      case PACKAGE_INFO:
+        if (value == null) {
+          unsetPackageInfo();
+        } else {
+          setPackageInfo((String)value);
+        }
+        break;
+
+      case NOTE_ID:
+        if (value == null) {
+          unsetNoteId();
+        } else {
+          setNoteId((String)value);
+        }
+        break;
+
+      case PARAGRAPH_ID:
+        if (value == null) {
+          unsetParagraphId();
+        } else {
+          setParagraphId((String)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case APPLICATION_INSTANCE_ID:
+        return getApplicationInstanceId();
+
+      case PACKAGE_INFO:
+        return getPackageInfo();
+
+      case NOTE_ID:
+        return getNoteId();
+
+      case PARAGRAPH_ID:
+        return getParagraphId();
+
+      }
+      throw new IllegalStateException();
+    }
+
+    /** Returns true if field corresponding to fieldID is set (has been 
assigned a value) and false otherwise */
+    public boolean isSet(_Fields field) {
+      if (field == null) {
+        throw new IllegalArgumentException();
+      }
+
+      switch (field) {
+      case APPLICATION_INSTANCE_ID:
+        return isSetApplicationInstanceId();
+      case PACKAGE_INFO:
+        return isSetPackageInfo();
+      case NOTE_ID:
+        return isSetNoteId();
+      case PARAGRAPH_ID:
+        return isSetParagraphId();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof loadApplication_args)
+        return this.equals((loadApplication_args)that);
+      return false;
+    }
+
+    public boolean equals(loadApplication_args that) {
+      if (that == null)
+        return false;
+
+      boolean this_present_applicationInstanceId = true && 
this.isSetApplicationInstanceId();
+      boolean that_present_applicationInstanceId = true && 
that.isSetApplicationInstanceId();
+      if (this_present_applicationInstanceId || 
that_present_applicationInstanceId) {
+        if (!(this_present_applicationInstanceId && 
that_present_applicationInstanceId))
+          return false;
+        if (!this.applicationInstanceId.equals(that.applicationInstanceId))
+          return false;
+      }
+
+      boolean this_present_packageInfo = true && this.isSetPackageInfo();
+      boolean that_present_packageInfo = true && that.isSetPackageInfo();
+      if (this_present_packageInfo || that_present_packageInfo) {
+        if (!(this_present_packageInfo && that_present_packageInfo))
+          return false;
+        if (!this.packageInfo.equals(that.packageInfo))
+          return false;
+      }
+
+      boolean this_present_noteId = true && this.isSetNoteId();
+      boolean that_present_noteId = true && that.isSetNoteId();
+      if (this_present_noteId || that_present_noteId) {
+        if (!(this_present_noteId && that_present_noteId))
+          return false;
+        if (!this.noteId.equals(that.noteId))
+          return false;
+      }
+
+      boolean this_present_paragraphId = true && this.isSetParagraphId();
+      boolean that_present_paragraphId = true && that.isSetParagraphId();
+      if (this_present_paragraphId || that_present_paragraphId) {
+        if (!(this_present_paragraphId && that_present_paragraphId))
+          return false;
+        if (!this.paragraphId.equals(that.paragraphId))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      List<Object> list = new ArrayList<Object>();
+
+      boolean present_applicationInstanceId = true && 
(isSetApplicationInstanceId());
+      list.add(present_applicationInstanceId);
+      if (present_applicationInstanceId)
+        list.add(applicationInstanceId);
+
+      boolean present_packageInfo = true && (isSetPackageInfo());
+      list.add(present_packageInfo);
+      if (present_packageInfo)
+        list.add(packageInfo);
+
+      boolean present_noteId = true && (isSetNoteId());
+      list.add(present_noteId);
+      if (present_noteId)
+        list.add(noteId);
+
+      boolean present_paragraphId = true && (isSetParagraphId());
+      list.add(present_paragraphId);
+      if (present_paragraphId)
+        list.add(paragraphId);
+
+      return list.hashCode();
+    }
+
+    @Override
+    public int compareTo(loadApplication_args other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+
+      lastComparison = 
Boolean.valueOf(isSetApplicationInstanceId()).compareTo(other.isSetApplicationInstanceId());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetApplicationInstanceId()) {
+        lastComparison = 
org.apache.thrift.TBaseHelper.compareTo(this.applicationInstanceId, 
other.applicationInstanceId);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = 
Boolean.valueOf(isSetPackageInfo()).compareTo(other.isSetPackageInfo());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetPackageInfo()) {
+        lastComparison = 
org.apache.thrift.TBaseHelper.compareTo(this.packageInfo, other.packageInfo);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = 
Boolean.valueOf(isSetNoteId()).compareTo(other.isSetNoteId());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetNoteId()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.noteId, 
other.noteId);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      lastComparison = 
Boolean.valueOf(isSetParagraphId()).compareTo(other.isSetParagraphId());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetParagraphId()) {
+        lastComparison = 
org.apache.thrift.TBaseHelper.compareTo(this.paragraphId, other.paragraphId);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      return 0;
+    }
+
+    public _Fields fieldForId(int fieldId) {
+      return _Fields.findByThriftId(fieldId);
+    }
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot) throws 
org.apache.thrift.TException {
+      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws 
org.apache.thrift.TException {
+      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("loadApplication_args(");
+      boolean first = true;
+
+      sb.append("applicationInstanceId:");
+      if (this.applicationInstanceId == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.applicationInstanceId);
+      }
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("packageInfo:");
+      if (this.packageInfo == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.packageInfo);
+      }
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("noteId:");
+      if (this.noteId == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.noteId);
+      }
+      first = false;
+      if (!first) sb.append(", ");
+      sb.append("paragraphId:");
+      if (this.paragraphId == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.paragraphId);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+      // check for sub-struct validity
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws 
java.io.IOException {
+      try {
+        write(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(out)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, ClassNotFoundException {
+      try {
+        read(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(in)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private static class loadApplication_argsStandardSchemeFactory implements 
SchemeFactory {
+      public loadApplication_argsStandardScheme getScheme() {
+        return new loadApplication_argsStandardScheme();
+      }
+    }
+
+    private static class loadApplication_argsStandardScheme extends 
StandardScheme<loadApplication_args> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, 
loadApplication_args struct) throws org.apache.thrift.TException {
+        org.apache.thrift.protocol.TField schemeField;
+        iprot.readStructBegin();
+        while (true)
+        {
+          schemeField = iprot.readFieldBegin();
+          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+            break;
+          }
+          switch (schemeField.id) {
+            case 1: // APPLICATION_INSTANCE_ID
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) 
{
+                struct.applicationInstanceId = iprot.readString();
+                struct.setApplicationInstanceIdIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            case 2: // PACKAGE_INFO
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) 
{
+                struct.packageInfo = iprot.readString();
+                struct.setPackageInfoIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            case 3: // NOTE_ID
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) 
{
+                struct.noteId = iprot.readString();
+                struct.setNoteIdIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            case 4: // PARAGRAPH_ID
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) 
{
+                struct.paragraphId = iprot.readString();
+                struct.setParagraphIdIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            default:
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+          }
+          iprot.readFieldEnd();
+        }
+        iprot.readStructEnd();
+
+        // check for required fields of primitive type, which can't be checked 
in the validate method
+        struct.validate();
+      }
+
+      public void write(org.apache.thrift.protocol.TProtocol oprot, 
loadApplication_args struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.applicationInstanceId != null) {
+          oprot.writeFieldBegin(APPLICATION_INSTANCE_ID_FIELD_DESC);
+          oprot.writeString(struct.applicationInstanceId);
+          oprot.writeFieldEnd();
+        }
+        if (struct.packageInfo != null) {
+          oprot.writeFieldBegin(PACKAGE_INFO_FIELD_DESC);
+          oprot.writeString(struct.packageInfo);
+          oprot.writeFieldEnd();
+        }
+        if (struct.noteId != null) {
+          oprot.writeFieldBegin(NOTE_ID_FIELD_DESC);
+          oprot.writeString(struct.noteId);
+          oprot.writeFieldEnd();
+        }
+        if (struct.paragraphId != null) {
+          oprot.writeFieldBegin(PARAGRAPH_ID_FIELD_DESC);
+          oprot.writeString(struct.paragraphId);
+          oprot.writeFieldEnd();
+        }
+        oprot.writeFieldStop();
+        oprot.writeStructEnd();
+      }
+
+    }
+
+    private static class loadApplication_argsTupleSchemeFactory implements 
SchemeFactory {
+      public loadApplication_argsTupleScheme getScheme() {
+        return new loadApplication_argsTupleScheme();
+      }
+    }
+
+    private static class loadApplication_argsTupleScheme extends 
TupleScheme<loadApplication_args> {
+
+      @Override
+      public void write(org.apache.thrift.protocol.TProtocol prot, 
loadApplication_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol oprot = (TTupleProtocol) prot;
+        BitSet optionals = new BitSet();
+        if (struct.isSetApplicationInstanceId()) {
+          optionals.set(0);
+        }
+        if (struct.isSetPackageInfo()) {
+          optionals.set(1);
+        }
+        if (struct.isSetNoteId()) {
+          optionals.set(2);
+        }
+        if (struct.isSetParagraphId()) {
+          optionals.set(3);
+        }
+        oprot.writeBitSet(optionals, 4);
+        if (struct.isSetApplicationInstanceId()) {
+          oprot.writeString(struct.applicationInstanceId);
+        }
+        if (struct.isSetPackageInfo()) {
+          oprot.writeString(struct.packageInfo);
+        }
+        if (struct.isSetNoteId()) {
+          oprot.writeString(struct.noteId);
+        }
+        if (struct.isSetParagraphId()) {
+          oprot.writeString(struct.paragraphId);
+        }
+      }
+
+      @Override
+      public void read(org.apache.thrift.protocol.TProtocol prot, 
loadApplication_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol iprot = (TTupleProtocol) prot;
+        BitSet incoming = iprot.readBitSet(4);
+        if (incoming.get(0)) {
+          struct.applicationInstanceId = iprot.readString();
+          struct.setApplicationInstanceIdIsSet(true);
+        }
+        if (incoming.get(1)) {
+          struct.packageInfo = iprot.readString();
+          struct.setPackageInfoIsSet(true);
+        }
+        if (incoming.get(2)) {
+          struct.noteId = iprot.readString();
+          struct.setNoteIdIsSet(true);
+        }
+        if (incoming.get(3)) {
+          struct.paragraphId = iprot.readString();
+          struct.setParagraphIdIsSet(true);
+        }
+      }
+    }
+
+  }
+
+  public static class loadApplication_result implements 
org.apache.thrift.TBase<loadApplication_result, 
loadApplication_result._Fields>, java.io.Serializable, Cloneable, 
Comparable<loadApplication_result>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("loadApplication_result");
+
+    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC 
= new org.apache.thrift.protocol.TField("success", 
org.apache.thrift.protocol.TType.STRUCT, (short)0);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new 
loadApplication_resultStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
loadApplication_resultTupleSchemeFactory());
+    }
+
+    public RemoteApplicationResult success; // required
+
+    /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
+    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+      SUCCESS((short)0, "success");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
+
+      static {
+        for (_Fields field : EnumSet.allOf(_Fields.class)) {
+          byName.put(field.getFieldName(), field);
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, or null if its not 
found.
+       */
+      public static _Fields findByThriftId(int fieldId) {
+        switch(fieldId) {
+          case 0: // SUCCESS
+            return SUCCESS;
+          default:
+            return null;
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, throwing an exception
+       * if it is not found.
+       */
+      public static _Fields findByThriftIdOrThrow(int fieldId) {
+        _Fields fields = findByThriftId(fieldId);
+        if (fields == null) throw new IllegalArgumentException("Field " + 
fieldId + " doesn't exist!");
+        return fields;
+      }
+
+      /**
+       * Find the _Fields constant that matches name, or null if its not found.
+       */
+      public static _Fields findByName(String name) {
+        return byName.get(name);
+      }
+
+      private final short _thriftId;
+      private final String _fieldName;
+
+      _Fields(short thriftId, String fieldName) {
+        _thriftId = thriftId;
+        _fieldName = fieldName;
+      }
+
+      public short getThriftFieldId() {
+        return _thriftId;
+      }
+
+      public String getFieldName() {
+        return _fieldName;
+      }
+    }
+
+    // isset id assignments
+    public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+    static {
+      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+      tmpMap.put(_Fields.SUCCESS, new 
org.apache.thrift.meta_data.FieldMetaData("success", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 RemoteApplicationResult.class)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(loadApplication_result.class,
 metaDataMap);
+    }
+
+    public loadApplication_result() {
+    }
+
+    public loadApplication_result(
+      RemoteApplicationResult success)
+    {
+      this();
+      this.success = success;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public loadApplication_result(loadApplication_result other) {
+      if (other.isSetSuccess()) {
+        this.success = new RemoteApplicationResult(other.success);
+      }
+    }
+
+    public loadApplication_result deepCopy() {
+      return new loadApplication_result(this);
+    }
+
+    @Override
+    public void clear() {
+      this.success = null;
+    }
+
+    public RemoteApplicationResult getSuccess() {
+      return this.success;
+    }
+
+    public loadApplication_result setSuccess(RemoteApplicationResult success) {
+      this.success = success;
+      return this;
+    }
+
+    public void unsetSuccess() {
+      this.success = null;
+    }
+
+    /** Returns true if field success is set (has been assigned a value) and 
false otherwise */
+    public boolean isSetSuccess() {
+      return this.success != null;
+    }
+
+    public void setSuccessIsSet(boolean value) {
+      if (!value) {
+        this.success = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SUCCESS:
+        if (value == null) {
+          unsetSuccess();
+        } else {
+          setSuccess((RemoteApplicationResult)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SUCCESS:
+        return getSuccess();
+
+      }
+      throw new IllegalStateException();
+    }
+
+    /** Returns true if field corresponding to fieldID is set (has been 
assigned a value) and false otherwise */
+    public boolean isSet(_Fields field) {
+      if (field == null) {
+        throw new IllegalArgumentException();
+      }
+
+      switch (field) {
+      case SUCCESS:
+        return isSetSuccess();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof loadApplication_result)
+        return this.equals((loadApplication_result)that);
+      return false;
+    }
+
+    public boolean equals(loadApplication_result that) {
+      if (that == null)
+        return false;
+
+      boolean this_present_success = true && this.isSetSuccess();
+      boolean that_present_success = true && that.isSetSuccess();
+      if (this_present_success || that_present_success) {
+        if (!(this_present_success && that_present_success))
+          return false;
+        if (!this.success.equals(that.success))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      List<Object> list = new ArrayList<Object>();
+
+      boolean present_success = true && (isSetSuccess());
+      list.add(present_success);
+      if (present_success)
+        list.add(success);
+
+      return list.hashCode();
+    }
+
+    @Override
+    public int compareTo(loadApplication_result other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+
+      lastComparison = 
Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetSuccess()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, 
other.success);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      return 0;
+    }
+
+    public _Fields fieldForId(int fieldId) {
+      return _Fields.findByThriftId(fieldId);
+    }
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot) throws 
org.apache.thrift.TException {
+      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws 
org.apache.thrift.TException {
+      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+      }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("loadApplication_result(");
+      boolean first = true;
+
+      sb.append("success:");
+      if (this.success == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.success);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+      // check for sub-struct validity
+      if (success != null) {
+        success.validate();
+      }
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws 
java.io.IOException {
+      try {
+        write(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(out)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, ClassNotFoundException {
+      try {
+        read(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(in)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private static class loadApplication_resultStandardSchemeFactory 
implements SchemeFactory {
+      public loadApplication_resultStandardScheme getScheme() {
+        return new loadApplication_resultStandardScheme();
+      }
+    }
+
+    private static class loadApplication_resultStandardScheme extends 
StandardScheme<loadApplication_result> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, 
loadApplication_result struct) throws org.apache.thrift.TException {
+        org.apache.thrift.protocol.TField schemeField;
+        iprot.readStructBegin();
+        while (true)
+        {
+          schemeField = iprot.readFieldBegin();
+          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+            break;
+          }
+          switch (schemeField.id) {
+            case 0: // SUCCESS
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) 
{
+                struct.success = new RemoteApplicationResult();
+                struct.success.read(iprot);
+                struct.setSuccessIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            default:
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+          }
+          iprot.readFieldEnd();
+        }
+        iprot.readStructEnd();
+
+        // check for required fields of primitive type, which can't be checked 
in the validate method
+        struct.validate();
+      }
+
+      public void write(org.apache.thrift.protocol.TProtocol oprot, 
loadApplication_result struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.success != null) {
+          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+          struct.success.write(oprot);
+          oprot.writeFieldEnd();
+        }
+        oprot.writeFieldStop();
+        oprot.writeStructEnd();
+      }
+
+    }
+
+    private static class loadApplication_resultTupleSchemeFactory implements 
SchemeFactory {
+      public loadApplication_resultTupleScheme getScheme() {
+        return new loadApplication_resultTupleScheme();
+      }
+    }
+
+    private static class loadApplication_resultTupleScheme extends 
TupleScheme<loadApplication_result> {
+
+      @Override
+      public void write(org.apache.thrift.protocol.TProtocol prot, 
loadApplication_result struct) throws org.apache.thrift.TException {
+        TTupleProtocol oprot = (TTupleProtocol) prot;
+        BitSet optionals = new BitSet();
+        if (struct.isSetSuccess()) {
+          optionals.set(0);
+        }
+        oprot.writeBitSet(optionals, 1);
+        if (struct.isSetSuccess()) {
+          struct.success.write(oprot);
+        }
+      }
+
+      @Override
+      public void read(org.apache.thrift.protocol.TProtocol prot, 
loadApplication_result struct) throws org.apache.thrift.TException {
+        TTupleProtocol iprot = (TTupleProtocol) prot;
+        BitSet incoming = iprot.readBitSet(1);
+        if (incoming.get(0)) {
+          struct.success = new RemoteApplicationResult();
+          struct.success.read(iprot);
+          struct.setSuccessIsSet(true);
+        }
+      }
+    }
+
+  }
+
+  public static class unloadApplication_args implements 
org.apache.thrift.TBase<unloadApplication_args, 
unloadApplication_args._Fields>, java.io.Serializable, Cloneable, 
Comparable<unloadApplication_args>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("unloadApplication_args");
+
+    private static final org.apache.thrift.protocol.TField 
APPLICATION_INSTANCE_ID_FIELD_DESC = new 
org.apache.thrift.protocol.TField("applicationInstanceId", 
org.apache.thrift.protocol.TType.STRING, (short)1);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new 
unloadApplication_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
unloadApplication_argsTupleSchemeFactory());
+    }
+
+    public String applicationInstanceId; // required
+
+    /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
+    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+      APPLICATION_INSTANCE_ID((short)1, "applicationInstanceId");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
+
+      static {
+        for (_Fields field : EnumSet.allOf(_Fields.class)) {
+          byName.put(field.getFieldName(), field);
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, or null if its not 
found.
+       */
+      public static _Fields findByThriftId(int fieldId) {
+        switch(fieldId) {
+          case 1: // APPLICATION_INSTANCE_ID
+            return APPLICATION_INSTANCE_ID;
+          default:
+            return null;
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, throwing an exception
+       * if it is not found.
+       */
+      public static _Fields findByThriftIdOrThrow(int fieldId) {
+        _Fields fields = findByThriftId(fieldId);
+        if (fields == null) throw new IllegalArgumentException("Field " + 
fieldId + " doesn't exist!");
+        return fields;
+      }
+
+      /**
+       * Find the _Fields constant that matches name, or null if its not found.
+       */
+      public static _Fields findByName(String name) {
+        return byName.get(name);
+      }
+
+      private final short _thriftId;
+      private final String _fieldName;
+
+      _Fields(short thriftId, String fieldName) {
+        _thriftId = thriftId;
+        _fieldName = fieldName;
+      }
+
+      public short getThriftFieldId() {
+        return _thriftId;
+      }
+
+      public String getFieldName() {
+        return _fieldName;
+      }
+    }
+
+    // isset id assignments
+    public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+    static {
+      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+      tmpMap.put(_Fields.APPLICATION_INSTANCE_ID, new 
org.apache.thrift.meta_data.FieldMetaData("applicationInstanceId", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unloadApplication_args.class,
 metaDataMap);
+    }
+
+    public unloadApplication_args() {
+    }
+
+    public unloadApplication_args(
+      String applicationInstanceId)
+    {
+      this();
+      this.applicationInstanceId = applicationInstanceId;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public unloadApplication_args(unloadApplication_args other) {
+      if (other.isSetApplicationInstanceId()) {
+        this.applicationInstanceId = other.applicationInstanceId;
+      }
+    }
+
+    public unloadApplication_args deepCopy() {
+      return new unloadApplication_args(this);
+    }
+
+    @Override
+    public void clear() {
+      this.applicationInstanceId = null;
+    }
+
+    public String getApplicationInstanceId() {
+      return this.applicationInstanceId;
+    }
+
+    public unloadApplication_args setApplicationInstanceId(String 
applicationInstanceId) {
+      this.applicationInstanceId = applicationInstanceId;
+      return this;
+    }
+
+    public void unsetApplicationInstanceId() {
+      this.applicationInstanceId = null;
+    }
+
+    /** Returns true if field applicationInstanceId is set (has been assigned 
a value) and false otherwise */
+    public boolean isSetApplicationInstanceId() {
+      return this.applicationInstanceId != null;
+    }
+
+    public void setApplicationInstanceIdIsSet(boolean value) {
+      if (!value) {
+        this.applicationInstanceId = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case APPLICATION_INSTANCE_ID:
+        if (value == null) {
+          unsetApplicationInstanceId();
+        } else {
+          setApplicationInstanceId((String)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case APPLICATION_INSTANCE_ID:
+        return getApplicationInstanceId();
+
+      }
+      throw new IllegalStateException();
+    }
+
+    /** Returns true if field corresponding to fieldID is set (has been 
assigned a value) and false otherwise */
+    public boolean isSet(_Fields field) {
+      if (field == null) {
+        throw new IllegalArgumentException();
+      }
+
+      switch (field) {
+      case APPLICATION_INSTANCE_ID:
+        return isSetApplicationInstanceId();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof unloadApplication_args)
+        return this.equals((unloadApplication_args)that);
+      return false;
+    }
+
+    public boolean equals(unloadApplication_args that) {
+      if (that == null)
+        return false;
+
+      boolean this_present_applicationInstanceId = true && 
this.isSetApplicationInstanceId();
+      boolean that_present_applicationInstanceId = true && 
that.isSetApplicationInstanceId();
+      if (this_present_applicationInstanceId || 
that_present_applicationInstanceId) {
+        if (!(this_present_applicationInstanceId && 
that_present_applicationInstanceId))
+          return false;
+        if (!this.applicationInstanceId.equals(that.applicationInstanceId))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      List<Object> list = new ArrayList<Object>();
+
+      boolean present_applicationInstanceId = true && 
(isSetApplicationInstanceId());
+      list.add(present_applicationInstanceId);
+      if (present_applicationInstanceId)
+        list.add(applicationInstanceId);
+
+      return list.hashCode();
+    }
+
+    @Override
+    public int compareTo(unloadApplication_args other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+
+      lastComparison = 
Boolean.valueOf(isSetApplicationInstanceId()).compareTo(other.isSetApplicationInstanceId());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetApplicationInstanceId()) {
+        lastComparison = 
org.apache.thrift.TBaseHelper.compareTo(this.applicationInstanceId, 
other.applicationInstanceId);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      return 0;
+    }
+
+    public _Fields fieldForId(int fieldId) {
+      return _Fields.findByThriftId(fieldId);
+    }
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot) throws 
org.apache.thrift.TException {
+      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws 
org.apache.thrift.TException {
+      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+    }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("unloadApplication_args(");
+      boolean first = true;
+
+      sb.append("applicationInstanceId:");
+      if (this.applicationInstanceId == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.applicationInstanceId);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+      // check for sub-struct validity
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws 
java.io.IOException {
+      try {
+        write(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(out)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, ClassNotFoundException {
+      try {
+        read(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(in)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private static class unloadApplication_argsStandardSchemeFactory 
implements SchemeFactory {
+      public unloadApplication_argsStandardScheme getScheme() {
+        return new unloadApplication_argsStandardScheme();
+      }
+    }
+
+    private static class unloadApplication_argsStandardScheme extends 
StandardScheme<unloadApplication_args> {
+
+      public void read(org.apache.thrift.protocol.TProtocol iprot, 
unloadApplication_args struct) throws org.apache.thrift.TException {
+        org.apache.thrift.protocol.TField schemeField;
+        iprot.readStructBegin();
+        while (true)
+        {
+          schemeField = iprot.readFieldBegin();
+          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+            break;
+          }
+          switch (schemeField.id) {
+            case 1: // APPLICATION_INSTANCE_ID
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) 
{
+                struct.applicationInstanceId = iprot.readString();
+                struct.setApplicationInstanceIdIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
+            default:
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+          }
+          iprot.readFieldEnd();
+        }
+        iprot.readStructEnd();
+
+        // check for required fields of primitive type, which can't be checked 
in the validate method
+        struct.validate();
+      }
+
+      public void write(org.apache.thrift.protocol.TProtocol oprot, 
unloadApplication_args struct) throws org.apache.thrift.TException {
+        struct.validate();
+
+        oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.applicationInstanceId != null) {
+          oprot.writeFieldBegin(APPLICATION_INSTANCE_ID_FIELD_DESC);
+          oprot.writeString(struct.applicationInstanceId);
+          oprot.writeFieldEnd();
+        }
+        oprot.writeFieldStop();
+        oprot.writeStructEnd();
+      }
+
+    }
+
+    private static class unloadApplication_argsTupleSchemeFactory implements 
SchemeFactory {
+      public unloadApplication_argsTupleScheme getScheme() {
+        return new unloadApplication_argsTupleScheme();
+      }
+    }
+
+    private static class unloadApplication_argsTupleScheme extends 
TupleScheme<unloadApplication_args> {
+
+      @Override
+      public void write(org.apache.thrift.protocol.TProtocol prot, 
unloadApplication_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol oprot = (TTupleProtocol) prot;
+        BitSet optionals = new BitSet();
+        if (struct.isSetApplicationInstanceId()) {
+          optionals.set(0);
+        }
+        oprot.writeBitSet(optionals, 1);
+        if (struct.isSetApplicationInstanceId()) {
+          oprot.writeString(struct.applicationInstanceId);
+        }
+      }
+
+      @Override
+      public void read(org.apache.thrift.protocol.TProtocol prot, 
unloadApplication_args struct) throws org.apache.thrift.TException {
+        TTupleProtocol iprot = (TTupleProtocol) prot;
+        BitSet incoming = iprot.readBitSet(1);
+        if (incoming.get(0)) {
+          struct.applicationInstanceId = iprot.readString();
+          struct.setApplicationInstanceIdIsSet(true);
+        }
+      }
+    }
+
+  }
+
+  public static class unloadApplication_result implements 
org.apache.thrift.TBase<unloadApplication_result, 
unloadApplication_result._Fields>, java.io.Serializable, Cloneable, 
Comparable<unloadApplication_result>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("unloadApplication_result");
+
+    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC 
= new org.apache.thrift.protocol.TField("success", 
org.apache.thrift.protocol.TType.STRUCT, (short)0);
+
+    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
+    static {
+      schemes.put(StandardScheme.class, new 
unloadApplication_resultStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
unloadApplication_resultTupleSchemeFactory());
+    }
+
+    public RemoteApplicationResult success; // required
+
+    /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
+    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+      SUCCESS((short)0, "success");
+
+      private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
+
+      static {
+        for (_Fields field : EnumSet.allOf(_Fields.class)) {
+          byName.put(field.getFieldName(), field);
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, or null if its not 
found.
+       */
+      public static _Fields findByThriftId(int fieldId) {
+        switch(fieldId) {
+          case 0: // SUCCESS
+            return SUCCESS;
+          default:
+            return null;
+        }
+      }
+
+      /**
+       * Find the _Fields constant that matches fieldId, throwing an exception
+       * if it is not found.
+       */
+      public static _Fields findByThriftIdOrThrow(int fieldId) {
+        _Fields fields = findByThriftId(fieldId);
+        if (fields == null) throw new IllegalArgumentException("Field " + 
fieldId + " doesn't exist!");
+        return fields;
+      }
+
+      /**
+       * Find the _Fields constant that matches name, or null if its not found.
+       */
+      public static _Fields findByName(String name) {
+        return byName.get(name);
+      }
+
+      private final short _thriftId;
+      private final String _fieldName;
+
+      _Fields(short thriftId, String fieldName) {
+        _thriftId = thriftId;
+        _fieldName = fieldName;
+      }
+
+      public short getThriftFieldId() {
+        return _thriftId;
+      }
+
+      public String getFieldName() {
+        return _fieldName;
+      }
+    }
+
+    // isset id assignments
+    public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+    static {
+      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+      tmpMap.put(_Fields.SUCCESS, new 
org.apache.thrift.meta_data.FieldMetaData("success", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 RemoteApplicationResult.class)));
+      metaDataMap = Collections.unmodifiableMap(tmpMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unloadApplication_result.class,
 metaDataMap);
+    }
+
+    public unloadApplication_result() {
+    }
+
+    public unloadApplication_result(
+      RemoteApplicationResult success)
+    {
+      this();
+      this.success = success;
+    }
+
+    /**
+     * Performs a deep copy on <i>other</i>.
+     */
+    public unloadApplication_result(unloadApplication_result other) {
+      if (other.isSetSuccess()) {
+        this.success = new RemoteApplicationResult(other.success);
+      }
+    }
+
+    public unloadApplication_result deepCopy() {
+      return new unloadApplication_result(this);
+    }
+
+    @Override
+    public void clear() {
+      this.success = null;
+    }
+
+    public RemoteApplicationResult getSuccess() {
+      return this.success;
+    }
+
+    public unloadApplication_result setSuccess(RemoteApplicationResult 
success) {
+      this.success = success;
+      return this;
+    }
+
+    public void unsetSuccess() {
+      this.success = null;
+    }
+
+    /** Returns true if field success is set (has been assigned a value) and 
false otherwise */
+    public boolean isSetSuccess() {
+      return this.success != null;
+    }
+
+    public void setSuccessIsSet(boolean value) {
+      if (!value) {
+        this.success = null;
+      }
+    }
+
+    public void setFieldValue(_Fields field, Object value) {
+      switch (field) {
+      case SUCCESS:
+        if (value == null) {
+          unsetSuccess();
+        } else {
+          setSuccess((RemoteApplicationResult)value);
+        }
+        break;
+
+      }
+    }
+
+    public Object getFieldValue(_Fields field) {
+      switch (field) {
+      case SUCCESS:
+        return getSuccess();
+
+      }
+      throw new IllegalStateException();
+    }
+
+    /** Returns true if field corresponding to fieldID is set (has been 
assigned a value) and false otherwise */
+    public boolean isSet(_Fields field) {
+      if (field == null) {
+        throw new IllegalArgumentException();
+      }
+
+      switch (field) {
+      case SUCCESS:
+        return isSetSuccess();
+      }
+      throw new IllegalStateException();
+    }
+
+    @Override
+    public boolean equals(Object that) {
+      if (that == null)
+        return false;
+      if (that instanceof unloadApplication_result)
+        return this.equals((unloadApplication_result)that);
+      return false;
+    }
+
+    public boolean equals(unloadApplication_result that) {
+      if (that == null)
+        return false;
+
+      boolean this_present_success = true && this.isSetSuccess();
+      boolean that_present_success = true && that.isSetSuccess();
+      if (this_present_success || that_present_success) {
+        if (!(this_present_success && that_present_success))
+          return false;
+        if (!this.success.equals(that.success))
+          return false;
+      }
+
+      return true;
+    }
+
+    @Override
+    public int hashCode() {
+      List<Object> list = new ArrayList<Object>();
+
+      boolean present_success = true && (isSetSuccess());
+      list.add(present_success);
+      if (present_success)
+        list.add(success);
+
+      return list.hashCode();
+    }
+
+    @Override
+    public int compareTo(unloadApplication_result other) {
+      if (!getClass().equals(other.getClass())) {
+        return getClass().getName().compareTo(other.getClass().getName());
+      }
+
+      int lastComparison = 0;
+
+      lastComparison = 
Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetSuccess()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, 
other.success);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
+      return 0;
+    }
+
+    public _Fields fieldForId(int fieldId) {
+      return _Fields.findByThriftId(fieldId);
+    }
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot) throws 
org.apache.thrift.TException {
+      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot) throws 
org.apache.thrift.TException {
+      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+      }
+
+    @Override
+    public String toString() {
+      StringBuilder sb = new StringBuilder("unloadApplication_result(");
+      boolean first = true;
+
+      sb.append("success:");
+      if (this.success == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.success);
+      }
+      first = false;
+      sb.append(")");
+      return sb.toString();
+    }
+
+    public void validate() throws org.apache.thrift.TException {
+      // check for required fields
+      // check for sub-struct validity
+      if (success != null) {
+        success.validate();
+      }
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws 
java.io.IOException {
+      try {
+        write(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(out)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOException(te);
+      }
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, ClassNotFoundException {
+      try {
+        read(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(in)));
+      } catch (org.apache.thrift.TException te) {
+        throw new java.io.IOExce

<TRUNCATED>

Reply via email to