public function open():int
    {
        if ($this->resource == null) {
            $this->resource = ($this->is_base)? JL::open($this->mercure_path_base) : JL::open($this->mercure_path);
        }
        return (1);
    }