core/src/main/java/io/tracee/contextlogger/outputgenerator/functions/TraceeContextProviderWrapperFunction.java
protected Object createInstance(final Class type) {
		if (type != null) {
			try {
				return type.newInstance();
			} catch (Exception e) {
				// should not occur
			}
		}
		return null;
	}
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.

@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.