code: protected Object newInstance(Constructor constructor, Object[] parameters) throws InstantiationException, IllegalAccessException,
  			InvocationTargetException {
  		if (allowNonPublicClasses) {
  			constructor.setAccessible(true);
  		}
  		return constructor.newInstance(parameters);
  	}
docs: Instantiate an object with given parameters and respect the accessible
  flag.
  
  @param constructor
  the constructor to use
  @param parameters
  the parameters for the constructor
  @return the new object.
  @throws InstantiationException
  @throws IllegalAccessException
  @throws InvocationTargetException