code: private static Field getSerialVersionUID(Class<?> clz)
     {
        Class<?> c = clz;
        while (c != null)
        {
           try
           {
              Field svuf = SecurityActions.getDeclaredField(clz, "serialVersionUID");
              SecurityActions.setAccessible(svuf);
              return svuf;
           }
           catch (Throwable t)
           {
              // No serialVersionUID definition
           }
           c = c.getSuperclass();
        }
  
        return null;
     }
docs: Find the serialVersionUID field
  @param clz The class
  @return The field or <code>null</code> if none were found