/* 285: */ /* 286: */ static AnnotationTarget getTarget(ServiceRegistry serviceRegistry, ClassInfo classInfo, String name, TargetType type) /* 287: */ { /* 288:322 */ Class clazz = ((ClassLoaderService)serviceRegistry.getService(ClassLoaderService.class)).classForName(classInfo.toString()); /* 289: */ Method method; /* 290:323 */ switch (1.$SwitchMap$org$hibernate$metamodel$source$annotations$xml$mocker$MockHelper$TargetType[type.ordinal()]) /* 291: */ { /* 292: */ case 1: /* 293:325 */ Field field = getField(clazz, name); /* 294:326 */ if (field == null) { /* 295:327 */ throw new HibernateException("Unable to load field " + name + " of class " + clazz.getName()); /* 296: */ } /* 297:334 */ return FieldInfo.create(classInfo, name, getType(field.getType()), (short)field.getModifiers()); /* 298: */ case 2: /* 299:338 */ method = getMethod(clazz, name); /* 300:339 */ if (method == null) { /* 301:340 */ throw new HibernateException("Unable to load method " + name + " of class " + clazz.getName()); /* 302: */ } /* 303:346 */ return getMethodInfo(classInfo, method); /* 304: */ case 3: