while ( true)
{
String s=messenger.inputString();
logger.finer( s);
HandlerStack stack=new HandlerStack( parser.getXMLReader());
QueryRequest request=new QueryRequest();
DefaultHandler top=new QueryRequest.Element( request).readFromXML( stack);
stack.pushHandlerStack( top);
parser.parse( new InputSource( new StringReader( s)), top);
QueryResponse response=bbq.getXMLIntf().PerformQuery(request);
StringWriter out=new StringWriter();