code: function registerVaultOrders(cfg) {
  	if (!cfg) {
  		throw new Error('Archivist configuration missing');
  	}
  
  	if (!cfg.vaults) {
  		throw new Error('No "vaults" defined in the archivist configuration');
  	}
  
  	if (!Array.isArray(cfg.listOrder)) {
  		throw new Error('No "listOrder"-array defined in the archivist configuration');
  	}
  
  	if (!Array.isArray(cfg.readOrder)) {
  		throw new Error('No "readOrder"-array defined in the archivist configuration');
  	}
  
  	if (!Array.isArray(cfg.writeOrder)) {
  		throw new Error('No "writeOrder"-array defined in the archivist configuration');
  	}
  
  	cfg.listOrder.forEach(function (vaultName) {
  		if (vaultName !== 'client' && !cfg.vaults[vaultName]) {
  			throw new Error('Vault "' + vaultName + '" is in listOrder, but is not configured');
  		}
  	});
  
  	cfg.readOrder.forEach(function (vaultName) {
  		if (vaultName !== 'client' && !cfg.vaults[vaultName]) {
  			throw new Error('Vault "' + vaultName + '" is in readOrder, but is not configured');
  		}
  	});
  
  	cfg.writeOrder.forEach(function (vaultName) {
  		if (vaultName !== 'client' && !cfg.vaults[vaultName]) {
  			throw new Error('Vault "' + vaultName + '" is in writeOrder, but is not configured');
  		}
  	});
  
  	listOrder = cfg.listOrder;
  	readOrder = cfg.readOrder;
  	writeOrder = cfg.writeOrder;
  }
docs: SETUP PHASE