/**
* QueryMessage is sent to the serialServer.
*/
public void visit(QueryMessage m) throws WebAppException {
ClientConnection conn = connectToServer();
conn.write(m.toString());
try {
Message retMessage = parser.parse(conn.read());
retMessage.accept(this);
} catch (MessageParserException e) {
throw new WebAppException("Invalid message", e);
} catch (IOException e) {
throw new WebAppException("Connection to serialServer failed", e);