protected static synchronized void generatePearSpecifier(String mainComponentRootPath,
String mainComponentId) throws IOException, SAXException {
PearSpecifier pearSpec = UIMAFramework.getResourceSpecifierFactory().createPearSpecifier();
pearSpec.setPearPath(mainComponentRootPath);
File outputFile = new File(mainComponentRootPath, mainComponentId + PEAR_DESC_FILE_POSTFIX);
pearSpec.toXML(new FileOutputStream(outputFile));
}
/**
* Generates the file (batch file for Windows) containing specific environment variables that
* should be used to run the component.