code: static Throwable cause(Throwable e)
    {
      while (e.getCause() != null
          && (e instanceof InstantiationException
              || e instanceof InvocationTargetException
              || e.getClass().equals(RuntimeExceptionConfig.class))) {
        e = e.getCause();
      }
      
      return e;
    }
docs: Unwraps noise from the exception trace.