public void connectionOpened(AbstractConnection connection) {
Map<ConfigurationVariable, String> parameters = new HashMap<ConfigurationVariable, String>();
parameters.put(ConfigurationVariable.CLIENT_ENCODING, "UNICODE");
parameters.put(ConfigurationVariable.DATE_STYLE, "ISO");
connection.write(new StartupMessage(connectionManager.getUsername(), connectionManager.getDatabase(), parameters));
}