{
try {
_instanceClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
}
catch (ClassCastException e) {
throw new YogaRuntimeException("Unable to initialize class " + getClass().getName() + " because " +
"entity class could not be determined. Either specify it in the generic type when extending " +
"YogaEntityConfiguration, or explicitly override getEntityClass() with the correct value.");
}
}