private void validateTargetConfig(String notificationType, Map<String, Object> properties) {
    NotificationDispatcher dispatcher = dispatchFactory.getDispatcher(notificationType);
    if (dispatcher == null) {
      throw new IllegalArgumentException("Dispatcher for given notification type doesn't exist");
    }
    TargetConfigurationResult validationResult = dispatcher.validateTargetConfig(properties);
    if (validationResult.getStatus() == TargetConfigurationResult.Status.INVALID) {
      throw new IllegalArgumentException(validationResult.getMessage());
    }
  }
Finds dispatcher for given notification type and validates on it given alert target configuration properties.
@param notificationType type of dispatcher
@param properties alert target configuration properties
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProvider.java