* This method was used to be a private one in {@link org.geotools.gui.swing.ExceptionMonitor}.
* Do not rely on it.
*/
public static String printStackTrace(final Throwable exception) {
final StringWriter writer = new StringWriter();
exception.printStackTrace(new PrintWriter(new ExpandedTabWriter(writer, TAB_WIDTH)));
return writer.toString();
}