public void initialize(UimaContext aContext) throws ResourceInitializationException {
super.initialize(aContext);
try {
templateFile = ((FileResource)aContext.getResourceObject("template")).getFile().getAbsolutePath();
structureFinder = new StructFinder();
}catch(Exception e ){
logger.error("Error reading template file: " + e.getMessage());
}
segmentId = (String) aContext.getConfigParameterValue("SegmentID");