* @throws Exception
*/
void createTransport(AmqpConnectOptions options, final Callback<Void> onConnect) throws Exception {
final TcpTransport transport;
if( options.getSslContext() !=null ) {
SslTransport ssl = new SslTransport();
ssl.setSSLContext(options.getSslContext());
transport = ssl;
} else {
transport = new TcpTransport();
}