@Override
    public String chooseServerKeyIdentityHint(SSLEngine engine) {
        try {
            return (String) mDelegate.getClass()
                    .getMethod("chooseServerKeyIdentityHint", SSLEngine.class)
                    .invoke(mDelegate, engine);
        } catch (Exception e) {
            throw new RuntimeException("Failed to invoke chooseServerKeyIdentityHint", e);
        }
    }
Gets an instance of {@code DuckTypedPSKKeyManager} which delegates all invocations of methods
of the {@link PSKKeyManager} interface to the same methods of the provided object.

@throws NoSuchMethodException if {@code obj} does not implement a method of the
        {@code PSKKeyManager} interface.
common/src/main/java/org/conscrypt/DuckTypedPSKKeyManager.java