private function filter($sources, array $filters = array())
    {
        $result = array();

        foreach ($sources as $source) {

            if (SourceFilterUtil::matches($source, $filters)) {
                $result[] = $source;
            }
        }

        return $result;
    }