public static Object newInstanceOfType(String className) {
Object result = null;
try {
result = getClassFor(className).newInstance();
} catch (InstantiationException e) {
throw new InitializeObjectFailedException(
"fail to initialize type: " + className, e);
} catch (IllegalAccessException e) {
throw new InitializeObjectFailedException(
"fail to initialize type: " + className, e);
}
return result;
}