code: @Override
      public void releaseInstance(Message m, Object o) {
  //Liberty Change for CXF Begain
          //if not managed by CDI or EJB, then call preDestory by ourself.
          //otherwise, perDestory has already been called by CDI/EJB
          JaxRsFactoryBeanCustomizer beanCustomizer = null;
          if (o != null)
          {
              Bus bus = m.getExchange().getBus();
              beanCustomizer = InjectionRuntimeContextHelper.findBeanCustomizer(o.getClass(), bus);
          }
          if (beanCustomizer == null)
          {
              InjectionUtils.invokeLifeCycleMethod(o, preDestroyMethod);
          }
  //Liberty Change for CXF End
      }
docs: {@inheritDoc}