protected T createNewBean ( ) throws InstantiationException { try { return beanClass . getConstructor ( ) . newInstance ( ) ; } catch ( final InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException e ) { // fold it all into one type of exception throw new InstantiationException ( e . getMessage ( ) ) ; } }
Creates a new bean .