// replace variables first
new PrecompilerThread(in, out1);
VariableResolverThread vr = new VariableResolverThread(new PushbackInputStream(in1), out2);
HTMLParserThread parser = new HTMLParserThread(sessionVariable, model, isEditor, inParser, out, semaphore);
semaphore.waitFor();
if (vr.getException() != null) {
throw vr.getException();
}