SocketAddress address = new InetSocketAddress(connectUri.getHost(), connectUri.getPort());
IoConnector connector = new DatagramConnector();
// TODO customize the config via URI
DatagramConnectorConfig config = new DatagramConnectorConfig();
config.getFilterChain().addLast("codec", new ProtocolCodecFilter(new ObjectSerializationCodecFactory()));
return new MinaEndpoint(uri, this, address, acceptor, connector, config);
}