// since this is a valid corpus, we adopt it by returning new
// DocumentSubsetCorpus which has the original corpus as a parent
FeatureMap parms = Factory.newFeatureMap();
parms.put("jdbcCorpus", ourCorpus);
try {
Resource newCorpus = Factory.createResource(
"at.ofai.gate.virtualcorpus.JDBCSubsetCorpus", parms,
corpus.getFeatures(), corpus.getName());
lr = (LanguageResource)newCorpus;
} catch (ResourceInstantiationException ex) {
throw new PersistenceException(