/**
* Creates a VamsasArchive Vobject for accessing and updating document
* Note: this will lock the Vamsas Document for exclusive access to the client.
/**
* Creates a VamsasArchive Vobject for accessing and updating document
* Note: this will lock the Vamsas Document for exclusive access to the client.
* @throws IOException if locks fail or vamsas document read fails.
*/
protected VamsasArchive getVamsasDocument() throws IOException {
* @throws IOException if locks fail or vamsas document read fails.
*/
protected VamsasArchive getVamsasDocument() throws IOException {
// patiently wait for a lock on the document. (from ArchiveClient.getUpdateable())
long tries=5000;
while (vamArchive.getLock()==null && --tries>0) {
// patiently wait for a lock on the document. (from ArchiveClient.getUpdateable())
long tries=5000;
while (vamArchive.getLock()==null && --tries>0) {