private class _init<A> {
private Class<A> type;
public A get(Class<A> type) {
this.type = type;
A ret = null;
try {
ret = type.newInstance();
} catch (InstantiationException ex) {
//...
} catch (IllegalAccessException ex) {
//...
}
return ret;
}
}