// class via default constructor
if (modelClass.getEnclosingClass() != null) {
return Reflect.instantiate(modelClass,
Reflect.instantiate(modelClass.getEnclosingClass()), parameters);
}
throw new InvalidModelException(
"Does model '"
+ modellLocation
+ "' implement a constructor with a Map<String, ?> as single argument? This is required.",
ex);
}
} catch (Exception ex) {
throw new InvalidModelException(
"Error while trying to read implemented model '" + ident.getHost()
+ "'", ex);
}
}