;
try {
final Object res = clazz.newInstance();
return res;
} catch (InstantiationException e) {
throw new NetfeverException(
new FaultDetails(
UUID.randomUUID().toString(),
-1,
String.format("Problem instantiating '%s' with error '%s'", clazz.getName(), e.getMessage()),
null,
"if this Class represents an abstract class, an interface, an array class, a primitive type, or void; " +
"or if the class has no nullary constructor; or if the instantiation fails for some other reason."));
} catch (IllegalAccessException e) {
throw new NetfeverException(
new FaultDetails(
UUID.randomUUID().toString(),
-1,
String.format("Problem accessing '%s' with error '%s'", clazz.getName(), e.getMessage()),
"if the class or its nullary constructor is not accessible.",