public static void addWebServiceContextInjections(Holder holder, ClassFinder finder) {
List<Field> fields = finder.findAnnotatedFields(Resource.class);
for (Field field : fields) {
Resource resource = field.getAnnotation(Resource.class);
Class type = getInjectionType(resource.type(), null, field);
if (WebServiceContext.class == type) {
holder.addInjection(field.getDeclaringClass().getName(),
new Injection(field.getDeclaringClass().getName(), getInjectionName(null, field), BINDING_WEBSERVICE_CONTEXR_JNDI_NAME, ReferenceType.RESOURCE_ENV));
}
}