public TransportMessage newTransport( String uri, Resources resources ) throws Exception
{
UdpListener udpListener = (UdpListener) resources.get( UDP_LISTENER );
SocketAddress socketAddress = (SocketAddress) resources.get( SOCKET_ADDRESS );
URL url = new URL( uri );
TransportPacket transportPacket = null;
if (udpListener != null)
transportPacket = new UdpConnection( socketAddress, udpListener );
else