code: static WebServiceRef createWebServiceRefFromResource(Resource resource, Class<?> typeClass, String jndiName) throws InjectionException {
          // notice we send in 'Service.class' for the 'value' attribute, this is
          // because only service type injections are possible with the @Resource
          // annotation, so we'll use the default value for the 'value' attribute.
          return new WebServiceRefSimulator(resource.mappedName(), jndiName, typeClass, Service.class, null, "");
      }
docs: This creates an @WebServiceRef instance based on data from an @Resource annotation.
  The type class and JNDI name are separately passed in because the @Resource annotation
  may have the default values for these attributes.