*
* @param cause
* The root exception.
*/
private void throwInitializationException(Throwable cause) {
throw new ClassDefException(
"An exception was encountered while trying to instantiate a new instance of "
+ targetClass.getName()
+ ". This is probably because it doesn't implement a zero-arg constructor. To fix this, either change it so it has a zero-arg constructor, extend "
+ getClass().getSimpleName()
+ " and override the initializeParsedObject method, or make sure to always pass an existing object to the parser.",