protected Object newInstance ( Constructor constructor , Object [ ] parameters ) throws InstantiationException , IllegalAccessException , InvocationTargetException { if ( allowNonPublicClasses ) { constructor . setAccessible ( true ) ; } return constructor . newInstance ( parameters ) ; }
Instantiate an object with given parameters and respect the accessible flag .