code: public function isPublic($resource)
  	{
  		$m = NULL;
  		
  		if(preg_match("'^([^:]*):?//'", $resource, $m))
  		{
  			switch(strtolower($m[1]))
  			{
  				case '':
  				case 'http':
  				case 'https':
  					return true;
  				case 'k2':
  				case 'file':
  					foreach($this->blacklistPatterns as $pattern)
  					{
  						if(preg_match($pattern, $resource))
  						{
  							return false;
  						}
  					}
  			}
  		}
  		
  		return true;
  	}
docs: {@inheritdoc}