private void displayCustomStyleError(Exception exception) {
try {
StringWriter w = new StringWriter();
exception.printStackTrace(new PrintWriter(w));
w.close();
WindowPane windowPane = new WindowPane();
windowPane.setStyleName("Default");
windowPane.setTitle("Exception Setting Custom Style");
windowPane.add(new Label(w.toString()));
InteractiveApp.getApp().getDefaultWindow().getContent().add(windowPane);
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}