code: private static Field getDeclaredFieldSuper(Class<?> clazz, String name) throws NoSuchFieldException
      {
          try
          {
              return clazz.getDeclaredField(name);
          }
          catch (final NoSuchFieldException exception)
          {
              if (clazz.getSuperclass() == null)
              {
                  throw exception;
              }
              return getDeclaredFieldSuper(clazz.getSuperclass(), name);
          }
      }
docs: Get the field by reflection searching in super class if needed.
  
  @param clazz The class to use.
  @param name The field name.
  @return The field found.
  @throws NoSuchFieldException If field not found.