static ConnectionRequest wrap(ConnectionRequest orig) {
        if (orig instanceof Wrapped)
            throw new IllegalArgumentException();
        return (ConnectionRequest) Proxy.newProxyInstance(
                // https://github.com/aws/aws-sdk-java/pull/48#issuecomment-29454423
                ClientConnectionRequestFactory.class.getClassLoader(),
                interfaces,
                new Handler(orig));
    }
Returns a wrapped instance of {@link ConnectionRequest}
to capture the necessary performance metrics.
@param orig the target instance to be wrapped
aws-java-sdk-core/src/main/java/com/amazonaws/http/conn/ClientConnectionRequestFactory.java