Object... args) throws InvocationTargetException,
InstantiateException {
try {
return constructor.newInstance(args);
} catch (IllegalArgumentException e) {
throw new InstantiateException("Could not instantiate "
+ constructor.getDeclaringClass(), e);
} catch (InstantiationException e) {
throw new InstantiateException("Could not instantiate "
+ constructor.getDeclaringClass(), e);
} catch (IllegalAccessException e) {
throw new InstantiateException("Could not instantiate "
+ constructor.getDeclaringClass(), e);
}
}