protected Object createInstance ( final Class type ) { if ( type != null ) { try { return type . newInstance ( ) ; } catch ( Exception e ) { // should not occur } } return null ; }
Creates a new instance of the passed type via reflection .