code: @Activate
      protected void activate(ComponentContext cc) throws Exception {
  
          RuntimeDelegate.setInstance(new RuntimeDelegateImpl());
          //This is a workaroud to avoid invoking createWoodstoxFactory in org.apache.cxf.staxutils.StaxUtils.createXMLInputFactor
          AccessController.doPrivileged(new PrivilegedExceptionAction<Boolean>() {
              @Override
              public Boolean run()
                              throws Exception
              {
                  System.setProperty(StaxUtils.ALLOW_INSECURE_PARSER, "1"); // sets the bla property without throwing an exception -> ok
                  return Boolean.TRUE;
              }
          });
          ClassLoader orignalClassLoader = THREAD_CONTEXT_ACCESSOR.getContextClassLoader(Thread.currentThread());
          try {
              //Make sure the current ThreadContextClassLoader is not an App classloader
              THREAD_CONTEXT_ACCESSOR.setContextClassLoader(Thread.currentThread(), JaxRsServiceActivator.class.getClassLoader());
              Map<String, Object> properties = new HashMap<String, Object>();
              properties.put("org.apache.cxf.bus.id", "Default Bus");
              Bus defaultBus = LibertyApplicationBusFactory.getInstance().createBus(null, properties);
              LibertyApplicationBusFactory.setDefaultBus(defaultBus);
          } finally {
              THREAD_CONTEXT_ACCESSOR.setContextClassLoader(Thread.currentThread(), orignalClassLoader);
          }
  
      }
docs: /*
  Called by Declarative Services to activate service