/** * 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()); } }