function addPubIdentifier($doc, $revisionNode, $submissionFile, $pubIdPlugin)
{
$pubId = $submissionFile->getStoredPubId($pubIdPlugin->getPubIdType());
if ($pubId) {
$deployment = $this->getDeployment();
$revisionNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'id', htmlspecialchars($pubId, ENT_COMPAT, 'UTF-8')));
$node->setAttribute('type', $pubIdPlugin->getPubIdType());
$node->setAttribute('advice', 'update');
return $node;
}
return null;
}