public function open(string $resource, string $withClass = 'stubbles\streams\file\FileInputStream')
    {
        if (!class_exists($withClass)) {
            throw new \InvalidArgumentException(
                    'Can not open ' . $resource . ' with ' . $withClass
                    . ', class does not exit.'
            );
        }

        return new $withClass($this->checkedPathFor($resource));
    }