code: private static String getStackTrace(final Throwable throwable) {
  		final StringWriter sw = new StringWriter();
  		final PrintWriter pw = new PrintWriter(sw, true);
  		throwable.printStackTrace(pw);
  		return sw.getBuffer().toString();
  	}
docs: from apache ExceptionUtil