In the archive method, add a new mechanism to check if the local id is in the xml_revision table if it is not in the xml_documents table.
In the archive method, add a new mechanism to check if the local id is in the xml_revision table if it is not in the xml_documents table.