code: private Field findField(Class<?> pClazz, String pField) {
          Class c = pClazz;
          do {
              try {
                  return c.getDeclaredField(pField);
              } catch (NoSuchFieldException e) {
                  c = pClazz.getSuperclass();
              }
          } while (c != null);
          return null;
      }
docs: Find a field in an inheritance hierarchy