core/src/main/java/io/tracee/contextlogger/outputgenerator/functions/BeanToOutputElementTransformerFunction.java
protected Object invokeField(final Object instance, final Method method) {
		if (instance == null || method == null) {
			return null;
		}

		try {
			Field field = FieldUtilities.getField(instance.getClass(), GetterUtilities.getFieldName(method));
			field.setAccessible(true);
			return field.get(instance);
		} catch (IllegalAccessException e) {
			// shouldn't occur
		} catch (IllegalArgumentException e) {
			// ignore
		}

		return null;
	}
protected Object invokeField(final Object instance, final Method method) {
		if (instance == null || method == null) {
			return null;
		}

		try {
			Field field = FieldUtilities.getField(instance.getClass(), GetterUtilities.getFieldName(method));
			field.setAccessible(true);
			return field.get(instance);
		} catch (IllegalAccessException e) {
			// shouldn't occur
		} catch (IllegalArgumentException e) {
			// ignore
		}

		return null;
	}
protected Object invokeField ( final Object instance , final Method method ) { if ( instance == null || method == null ) { return null ; } try { Field field = FieldUtilities . getField ( instance . getClass ( ) , GetterUtilities . getFieldName ( method ) ) ; field . setAccessible ( true ) ; return field . get ( instance ) ; } catch ( IllegalAccessException e ) { // shouldn't occur } catch ( IllegalArgumentException e ) { // ignore } return null ; }
Invokes the getter and return the return values

@param instance the instance to invoke the getter method on.
@param method   the method to invoke
@return the return value of the getter invocation
Invokes the getter and return the return values