// create an instance of the ExtendedGazetteer
FeatureMap fm = Factory.newFeatureMap();
File defFile = new File(testingDir,"extgaz1.def");
URL defURL = defFile.toURI().toURL();
fm.put("listsURL", defURL);
ExtendedGazetteer gaz = (ExtendedGazetteer)Factory.createResource(
"at.ofai.gate.extendedgazetteer.ExtendedGazetteer", fm);
String origclass = gaz.getClass().getName();
// create a serial corpus controller and add the PR
SerialAnalyserController cont =
(SerialAnalyserController)
Factory.createResource(
"gate.creole.SerialAnalyserController",