A simple java line allows to do that :
[java]
(Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];