TransportData c = null;
if (isSecure)
c = new TlsConnection( (SSLSocket) socket, u, resources );
else
c = new TcpConnection( (Socket) socket, u, resources );
TransportPacket p = new Packetizer( c, u, resources );
TransportMessage m = new Messagizer( p, u, resources );