throw t;
}
this.sslEngine.setUseClientMode(!isServer);
SslHandler sslHandler = new SslHandler(this.sslEngine);
Future<Channel> handleshake = sslHandler.handshakeFuture();
handleshake.addListener(new GenericFutureListener<Future<? super Channel>>() {
@Override
public void operationComplete(Future<? super Channel> future) throws Exception {
if (future.isSuccess()) {
emit("handshakedone", CallbackResult.EMPTY_SUCCESS);