code: @Override
     public void onEndpointInstantiated(final Endpoint endpoint, final Invocation invocation)
     {
        final Object _targetBean = this.getTargetBean(invocation);
        // TODO: refactor injection to AS IL
        final Reference reference = endpoint.getInstanceProvider().getInstance(_targetBean.getClass().getName());
        final Object targetBean = reference.getValue();
  
        InjectionHelper.injectWebServiceContext(targetBean, ThreadLocalAwareWebServiceContext.getInstance());
  
        if (!reference.isInitialized())
        {
           InjectionHelper.callPostConstructMethod(targetBean);
           reference.setInitialized();
        }
  
        endpoint.addAttachment(PreDestroyHolder.class, new PreDestroyHolder(targetBean));
     }
docs: Injects resources on target bean and calls post construct method.
  Finally it registers target bean for predestroy phase.
  
  @param endpoint used for predestroy phase registration process
  @param invocation current invocation