docs: private static void filterThrowable(Throwable t) {
  
          // Now we want to remove the superfluous lines of stack trace from the
          // exception (those that have been inserted as a result of the way we
          // created the exception.
          StackTraceElement[] stackLines = t.getStackTrace();
  
          // If there is definitely something to work with.
          if ((stackLines != null) && (stackLines.length > 1)) {
              Vector v = new Vector();
  
              // Look at each stack line in turn until we reach the JmsErrorUtils
              // class stuff, then copy them over starting with the first line after
              // JmsErrorUtils finishes.
              boolean euStarted = false;
  
              // First read up to the point where the JmsErrorUtils entries start.
              int index = 0;
              for (index = 0; index < stackLines.length; index++) {
                  StackTraceElement ste = stackLines[index];
  
                  // See if this is the errorUtils
                  if (className.equals(ste.getClassName())) {
                      // We have found an error utils line
                      euStarted = true;
                  }
                  else {
                      if (euStarted) {
                          // This indicates that we have now left the ErrorUtils lines,
                          // and everything left in the stack should be copied across.
                          v.add(ste);
                      }
                  }
              }
  
              // Now we take the filtered stack trace and set it back into the
              // exception we originally got it from.
              if (v.size() != 0) {
                  StackTraceElement[] filteredSTE = new StackTraceElement[v.size()];
                  for (int i = 0; i < filteredSTE.length; i++) {
                      filteredSTE[i] = (StackTraceElement) v.elementAt(i);
                  }
                  t.setStackTrace(filteredSTE);
              }
          }
      }