public static int match(WorkSpace sp, LogEntryTemplate template,
OutputStream out) throws Exception
{
XMLOutput o = new XMLOutput();
SerializationHandler h = o.wrap(out);
LogEntry l[] = sp.match(template);
// Outputs the fetched PTasks to the OutputStream in XML format.
o.startDocument("log", h);