private function parseEntity($entity)
{
$files = $this->explodeResourceIfElse($entity);
foreach ($files as $f) {
$this->suppress_file_exceptions = $this->checkSuppression($f);
$this->recursive = $this->checkRecursive($f);
$f = $this->trimFlags($f);
if (file_exists($f) || !isset($files[1])) {
return $f;
}
}
return $f;
}