def _publish_new(self, id_=None):
minter = current_pidstore.minters[<EOL>current_app.config['<STR_LIT>']<EOL>]<EOL>id_ = id_ or uuid.uuid4()<EOL>record_pid = minter(id_, self)<EOL>self['<STR_LIT>']['<STR_LIT>'] = {<EOL>'<STR_LIT:type>': record_pid.pid_type,<EOL>'<STR_LIT:value>': record_pid.pid_value,<EOL>'<STR_LIT>': <NUM_LIT:0>,<EOL>}<EOL>data = dict(self.dumps())<EOL>data['<STR_LIT>'] = self.record_schema<EOL>with self._process_files(id_, data):<EOL><INDENT>record = self.published_record_class.create(data, id_=id_)<EOL><DEDENT>return record<EOL>
Publish new deposit.

        :param id_: The forced record UUID.