RuntimeException e = null;
if (failureType != null) {
final String msg = getMessage();
switch (failureType) {
case ADAPTABLE_DOES_NOT_MATCH:
e = new InvalidAdaptableException(msg);
break;
case FAILED_CALLING_POST_CONSTRUCT:
case NO_MODEL_ANNOTATION:
case NO_USABLE_CONSTRUCTOR:
e = new InvalidModelException(msg);