@Override public void validate(ActionInstance actionInstance) { if (actionInstance == null) { throw new IllegalArgumentException("actionInstance cannot be null"); } if (actionInstance.getName() == null || "".equals(actionInstance.getName())) { throw new IllegalArgumentException("name for the actionInstance cannot be null or empty"); } if (actionInstance.getAction() == null) { throw new IllegalArgumentException("No Action class specified for the actionInstance"); } if (actionInstance.getTrigger() != null) { actionInstance.getTrigger().validate(); } }