if (isTopLevelComponent()) {
// ******************************************************************************
// Set a global UncaughtExceptionHandler to handle OOM and other uncaught Throwables
// ******************************************************************************
// this adds the handler to every thread
Thread.setDefaultUncaughtExceptionHandler(new UimaAsUncaughtExceptionHandler(getComponentName()));
// Check the version of uimaj that UIMA AS was built with, against the UIMA Core version. If not the same throw Exception
if (!UimaAsVersion.getUimajFullVersionString().equals(UimaVersion.getFullVersionString())) {
UIMAFramework.getLogger(CLASS_NAME).logrb(
Level.WARNING,
CLASS_NAME.getName(),