if (event instanceof OsgiBundleContextRefreshedEvent) {
log.info("Application context successfully refreshed (" + applicationContextString + ")");
}
if (event instanceof OsgiBundleContextFailedEvent) {
OsgiBundleContextFailedEvent failureEvent = (OsgiBundleContextFailedEvent) event;
log.error("Application context refresh failed (" + applicationContextString + ")",
failureEvent.getFailureCause());
}
if (event instanceof OsgiBundleContextClosedEvent) {
OsgiBundleContextClosedEvent closedEvent = (OsgiBundleContextClosedEvent) event;