public function pwrite($file, $data, $append = false, $create = true, $modeBoolean = true)
    {
        // Preprocessing
        $file = $this->_preProcess($file);

        // exception for the case that the file|folder isn't writable
        if (!$this->_is_resource_writable($file)) {
            throw new Doozr_Exception(
                'Could not persistent write to file "'.$file.'". Current operation failed. Check permissions.'
            );
        }

        // Get hash (previously calculated)
        $uid = $this->getCurrentResourceInformation('uid');

        // get getMetaComponents and write data
        $result = $this->_fwrite(
            $this->_getFileHandle($file, ($append ? self::FILE_MODE_WRITE_APPEND : self::FILE_MODE_WRITE)),
            $data
        );

        // transform result?
        if ($modeBoolean) {
            $result = ($result !== false) ? true : false;
        }

        // return the result of operation
        return $result;
    }