AlertDefinition alertDefinition = new AlertDefinition();
alertDefinition.setName("-x-test-full-definition2");
alertDefinition.setEnabled(false);
alertDefinition.setPriority("HIGH");
AlertNotification notification = new AlertNotification("Direct Emails");
notification.getConfig().put("emailAddress","enoch@root.org");
alertDefinition.getNotifications().add(notification);
AlertCondition condition = new AlertCondition("AVAILABILITY", "AVAIL_GOES_DOWN");
alertDefinition.getConditions().add(condition);