private function filter($configurations, array $criteria)
    {
        $result = array();

        /**
         * @var Configuration $configuration
         */
        foreach ($configurations as $configuration) {

            if (ConfigurationFilterUtil::matches($configuration, $criteria)) {
                $result[] = $configuration;
            }
        }

        return $result;
    }