final ObservationListenerSupport support = new ObservationListenerSupport(context.getBundleContext(), repository);
boolean closeSupport = true;
try {
if ( isOak ) {
try {
this.listener = new OakResourceListener(root, support, context.getBundleContext(), executor);
log.info("Detected Oak based repository. Using improved JCR Resource Listener");
} catch ( final RepositoryException re ) {
throw re;
} catch ( final Throwable t ) {
log.error("Unable to instantiate improved JCR Resource listener for Oak. Using fallback.", t);