if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
logFinest("UIMA_CPM_container_status__FINEST",
container.getName(), String.valueOf(container.getStatus()));
}
ProcessTrace pTrTemp = new ProcessTrace_impl(cpm.getPerformanceTuningSettings());
pTrTemp.startEvent(container.getName(), "End of Batch", "");
try {
CasProcessorDeployer deployer = container.getDeployer();
if (deployer != null) {
if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
logFinest("UIMA_CPM_undeploy_cp_instances__FINEST", container.getName(), deployer.getClass().getName());
}
deployer.undeploy();
}
container.destroy();
} catch (Exception e) {
logWarning("UIMA_CPM_exception_during_cp_stop__WARNING", container.getName(), e.getMessage());
} finally {
pTrTemp.endEvent(container.getName(), "End of Batch", "");
if (processingUnitProcessTrace != null) {
this.processingUnitProcessTrace.aggregate(pTrTemp);
}
}
}