public static String getStackTrace(Throwable t) {
		StringWriter stringWriter = new StringWriter();
		PrintWriter printWriter = new PrintWriter(stringWriter);
		t.printStackTrace(printWriter);

		return stringWriter.toString();
	}
Return the full stack trace for a Throwable.

@param t throwable for which to obtain the full stack trace
@return string containing the full stack trace
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/zookeeper/ZooKeeperUtils.java