code: private final String toPrettyPrintedStack(String type)
      {
          StringBuffer result = new StringBuffer();
          StringBuffer spaces = new StringBuffer();
          result.append("Unable to serialize class: ");
          result.append(type);
          result.append("\nField hierarchy is:");
          for (Iterator<TraceSlot> i = traceStack.listIterator(); i.hasNext();)
          {
              spaces.append("  ");
              TraceSlot slot = i.next();
              result.append("\n").append(spaces).append(slot.fieldDescription);
              result.append(" [class=").append(slot.object.getClass().getName());
              if (slot.object instanceof Component)
              {
                  Component component = (Component) slot.object;
                  result.append(", path=").append(component.getPath());
              }
              result.append("]");
          }
          result.append(" <----- field that is not serializable");
          return result.toString();
      }
docs: Dump with indentation.
  
  @param type the type that couldn't be serialized
  @return A very pretty dump