private function executeDoneCallback($type, $response)
    {
        if (is_null($response)) {
            return null;
        }

        $callables = array_filter($this->callablesMap, function ($callable) use ($type) {
            return $callable['typeUrl'] === $type;
        });

        if (count($callables) === 0) {
            return $response;
        }

        $callable = current($callables);
        $fn = $callable['callable'];

        return call_user_func($fn, $response);
    }