/** * Creates a new instance of the generated class by invoking the default constructor. * <p/> * If the generated class has not been defined it will be created. * * @return the new instance * @throws InstantiationException if the new instance could not be created * @throws IllegalAccessException if the new constructor is inaccessible for some reason */ public T newInstance() throws InstantiationException, IllegalAccessException { return defineClass().newInstance(); }