@Override
    protected void doApply(ApiRequest request, IPolicyContext context, TimeoutConfigBean config,
            IPolicyChain<ApiRequest> chain) {
        Map<String, String> mapPropertiesOfAPI = request.getApi().getEndpointProperties();
        // update the endpoint properties. Use in the
        // io.apiman.gateway.platforms.servlet.connectors.HttpApiConnection
        String newTimeout = config.getTimeoutConnect();
        if (newTimeout != null && newTimeout.length() > 0) {
            mapPropertiesOfAPI.put("timeouts.connect", newTimeout);
        }
        newTimeout = config.getTimeoutRead();
        if (newTimeout != null && newTimeout.length() > 0) {
            mapPropertiesOfAPI.put("timeouts.read", newTimeout);
        }
        chain.doApply(request);
    }
Set, overwrite timeout on backend request.

@author William Beck {@literal <william.beck.pro@gmail.com>}
plugins/timeout-policy/src/main/java/io/apiman/plugins/timeoutpolicy/TimeoutPolicy.java