code: @Override
      public InjectionBinding<WebServiceRef> createOverrideInjectionBinding(Class<?> instanceClass, Member member,
                                                                            Resource resource, String jndiName) throws InjectionException {
  
          Class<?> typeClass = resource.type();
  
          if (member != null) {
              Class<?> inferredType = InjectionHelper.getTypeFromMember(member);
              if (typeClass.getName().equals(Object.class.getName())) { //default
                  typeClass = inferredType;
  //            } else {
  //                if (!inferredType.isAssignableFrom(typeClass)) {
  //                    Tr.error(tc, "error.service.ref.member.level.annotation.type.not.compatible",
  //                             member.getName(), member.getDeclaringClass().getName(), typeClass.getName(), inferredType.getName());
  //                    throw new InjectionException(Tr.formatMessage(tc, "error.service.ref.member.level.annotation.type.not.compatible",
  //                                                                  member.getName(), member.getDeclaringClass().getName(), typeClass.getName(), inferredType.getName()));
  //                }
              }
          }
  
          InjectionBinding<WebServiceRef> binding;
  
          //only service type injections are possible with the @Resource annotation
          if (Service.class.isAssignableFrom(typeClass)) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "The @Resource annotation found has type=" + typeClass.getName() + " and is refers to a JAX-WS service reference");
              }
              binding = WebServiceRefBindingBuilder.createWebServiceRefBindingFromResource(resource, ivNameSpaceConfig, typeClass, jndiName);
          } else {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "The @Resource annotation found did not refer to a web service reference type.");
              }
              binding = null;
          }
  
          return binding;
      }
docs: This method will allow us to create an InjectionBinding instance for @Resource annotations found on a method or field
  that are being used to indicate web service reference types.