private ClientHello getClientHello(DTLSFlight flight) throws GeneralSecurityException, HandshakeException { Record record = flight.getMessages().get(0); return (ClientHello) record.getFragment(); }