}
protected void encodeMessage(OutputStream out, AbstractFrontendMessage message)throws IOException {
logger.trace("Encoding message");
EncoderOutputStream eos = new EncoderOutputStream(out);
switch(message.getType()) {
case FLUSH:
case PASSWORD:
case QUERY: