/** * Method to invoke Eagle Service call to update the markdown details for the policy. */ private void updateMarkdownDetails(T entity, boolean markdownEnabled, String markdownReason) { AlertDefinitionAPIEntity alertEntity = (AlertDefinitionAPIEntity) entity; alertEntity.setMarkdownEnabled(markdownEnabled); alertEntity.setMarkdownReason(null != markdownReason ? markdownReason : ""); policyDefinitionDao.updatePolicyDetails(entity); } }