public function find($query, $language = 'glob')
{
$this->failUnlessGlob($language);
$query = $this->sanitizePath($query);
$resources = array();
if (Glob::isDynamic($query)) {
$resources = $this->getGlobIterator($query);
} elseif (isset($this->resources[$query])) {
$resources = array($this->resources[$query]);
}
return new ArrayResourceCollection($resources);
}