in src/main/java/org/apache/commons/cli/TypeHandler.java [110:124]
public static Object createObject(final String classname) throws ParseException {
final Class<?> cl;
try {
cl = Class.forName(classname);
} catch (final ClassNotFoundException cnfe) {
throw new ParseException("Unable to find the class: " + classname);
}
try {
return cl.newInstance();
} catch (final Exception e) {
throw new ParseException(e.getClass().getName() + "; Unable to create an instance of: " + classname);
}
}