class Const {

  public static String getClassicStackTrace( Throwable e ) {
    StringWriter stringWriter = new StringWriter();
    PrintWriter printWriter = new PrintWriter( stringWriter );
    e.printStackTrace( printWriter );
    String string = stringWriter.toString();
    try {
      stringWriter.close();
    } catch ( IOException ioe ) {
      // is this really required?
    }
    return string;
  }

}