code: protected Object createInstance(final Class type) {
  		if (type != null) {
  			try {
  				return type.newInstance();
  			} catch (Exception e) {
  				// should not occur
  			}
  		}
  		return null;
  	}
docs: Creates a new instance of the passed type via reflection.
  
  @param type the type of the new instance
  @return a new instance of the passed type or null if an exception occurred during the creation of the instance of if the passed type is null.