Object socket = resources.get( SOCKET );
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 );