/**
  * Undeploy policy from global CEP.
  *
  * @param policyName name of the policy file to be deleted.
  * @throws APIManagementException
  */
 public void undeployPolicyFromGlobalCEP(String policyName) throws APIManagementException {
   try {
     globalThrottleEngineClient.deleteExecutionPlan(policyName);
   } catch (Exception e) {
     log.error("Error while undeploying policy from global policy server." + e.getMessage());
   }
 }
 /**
  * This method will be used to deploy policy to Global policy engine.
  *
  * @param policyName policy name of the policy to be deployed.
  * @param policy Policy string to be deployed.
  * @throws APIManagementException
  */
 public void deployPolicyToGlobalCEP(String policyName, String policy)
     throws APIManagementException {
   try {
     globalThrottleEngineClient.deployExecutionPlan(policyName, policy);
   } catch (Exception e) {
     log.error("Error while deploying policy to global policy server." + e.getMessage());
   }
 }
 /**
  * Returns true if the passed execution plan is valid
  *
  * @param executionPlan
  * @return boolean
  */
 public boolean validateExecutionPlan(String executionPlan) {
   return globalThrottleEngineClient.validateExecutionPlan(executionPlan);
 }
 /**
  * Undeploy policy from the gateway manager nodes
  *
  * @param policyNames
  * @return
  * @throws APIManagementException
  */
 public void undeployPolicyFromGatewayManager(String[] policyNames) throws APIManagementException {
   for (String policyName : policyNames) {
     globalThrottleEngineClient.deleteExecutionPlan(policyName);
   }
 }