//PSPProperties props = getPSPProperties();
//PropertyKey key = props.findExistingKey(path);
System.out.println("getting time log");
// Get a copy of the time log.
TimeLog tl = new TimeLog();
tl.readDefault();
System.out.println("scanning for depth");
// first, scan the time log to see how deep a hierarchy we need.
Enumeration rows = tl.filter(PropertyKey.ROOT, null, null);
TimeLogEntry tle;
String entryPath;
int depth = 1, currDepth, i;
while (rows.hasMoreElements()) {
tle = (TimeLogEntry) rows.nextElement();
entryPath = tle.getPath();
System.out.println(entryPath);
currDepth = countSlashes(entryPath);
if (currDepth > depth) depth = currDepth;
}
System.out.println("depth is " + depth);
out.print(HEADER_START);
for (i=0; i++ < depth; )
out.print(HEADER_MIDA + i + HEADER_MIDB);
out.print(HEADER_END);
System.out.println("scanning to print");
// Now scan the time log and print out each row.
rows = tl.filter(PropertyKey.ROOT, null, null);
StringTokenizer tok;
while (rows.hasMoreElements()) {
tle = (TimeLogEntry) rows.nextElement();
out.println("<TR>");