protected function findConfiguration($value, \Closure $func)
    {
        /** @var AbstractPageRouteConfiguration $configuration */
        foreach ($this->all() as $configuration) {
            if ($func($configuration, $value)) {
                return $configuration;
            }
        }

        return null;
    }