public void initialize() throws ResourceInitializationException {

    String oPath = (String) getUimaContext().getConfigParameterValue("outputFile");
    if (oPath == null) {
      throw new ResourceInitializationException(
              ResourceInitializationException.CONFIG_SETTING_ABSENT, new Object[] { "outputFile" });
    }
    outFile = new File(oPath.trim());
    
    try {
      if(outFile.exists()){
        outFile.delete();
      }
      outFile.createNewFile();
      fileWriter = new FileWriter(outFile,true);
        
    } catch (IOException e) {
      throw new ResourceInitializationException(e);
    }
  }