protected final function resolveResource($file)
	{
		if(0 === strpos($file, './') || 0 === strpos($file, '../'))
		{
			$file = rtrim(dirname($this->getResource()), '/\\') . '/' . $file;
		}
		elseif(!preg_match("'^/|(?:[^:]+://)|(?:[a-z]:[\\\\/])'i", $file))
		{
			$dir = rtrim(dirname($this->getResource()), '/\\');
			$file = $dir . '/' . ltrim($file, '/\\');
		}
		
		return (string)$file;
	}