public Object setCorpusName(String corpus_name, Corpus persistCorp)
     throws PersistenceException, SecurityException {
   // change corpus and sync it with the datastore
   persistCorp.setName(corpus_name);
   persistCorp.sync();
   return persistCorp.getLRPersistenceId();
 }