/**
  * Set the log level for this message
  *
  * @param level the log level
  * @return this
  * @throws ProcessingError log level is null
  */
 public ProcessingMessage setLogLevel(final LogLevel level) {
   if (level == null) throw new ProcessingError(BUNDLE.getString("nullLevel"));
   this.level = Preconditions.checkNotNull(level, "log level cannot be null");
   return put("level", level);
 }
 /**
  * Set the exception provider for that particular message
  *
  * @param exceptionProvider the exception provider
  * @return this
  * @throws ProcessingError exception provider is null
  */
 public ProcessingMessage setExceptionProvider(final ExceptionProvider exceptionProvider) {
   if (exceptionProvider == null)
     throw new ProcessingError(BUNDLE.getString("nullExceptionProvider"));
   this.exceptionProvider = exceptionProvider;
   return this;
 }