private void checkTopLevelCorpus ( ) throws ConflictingCorpusException { String corpusName = getTopLevelCorpusFromTmpArea ( ) ; if ( existConflictingTopLevelCorpus ( corpusName ) ) { String msg = "There already exists a top level corpus with the name: " + corpusName ; throw new ConflictingCorpusException ( msg ) ; } }
Checks if a already exists a corpus with the same name of the top level corpus in the corpus . tab file . If this is the case an Exception is thrown and the import is aborted .