@Override
  public void printStackTrace(PrintStream stream) {
    super.printStackTrace(stream);

    if (encapsulatedException != null) {
      stream.println("*** Nested Exception:");
      encapsulatedException.printStackTrace(stream);
    }
  }
@Override
  public void printStackTrace(PrintStream stream)