code: public static KbTypeConflictException fromThrowable(Throwable cause) {
      return (cause instanceof KbTypeConflictException)
                     ? (KbTypeConflictException) cause
                     : new KbTypeConflictException(cause);
    }
docs: Converts a Throwable to a KbTypeConflictException. If the Throwable is a
  KbTypeConflictException, it will be passed through unmodified; otherwise, it will be wrapped
  in a new KbTypeConflictException.
  
  @param cause the Throwable to convert
  
  @return a KbTypeConflictException