public void deployExecutionPlan(String name, String executionPlan) throws Exception {
   try {
     String sessionID = login();
     deploy(name, executionPlan, sessionID);
   } finally {
     try {
       logout();
     } catch (RemoteException e) {
       log.error("Error when logging out from global throttling engine. " + e.getMessage(), e);
     } catch (LogoutAuthenticationExceptionException e) {
       log.error("Error when logging out from global throttling engine. " + e.getMessage(), e);
     }
   }
 }