code: public Optional<AlertCondition> add(Entity entity, long conditionId)
      {
          return add(entity.getId(), entity.getType(), conditionId);
      }
docs: Adds the given entity to the alert condition with the given id.
  @param entity The entity to add
  @param conditionId The id of the alert condition to add the entity to
  @return The alert condition that was updated