code: public static Class getGenericClassFromParent(Object parent) {
  		return (Class) ((ParameterizedType) parent.getClass().getGenericSuperclass()).getActualTypeArguments()[0];
  	}
docs: Gets the generic class from parent.
  
  @param parent the parent
  @return the generic class from parent