public static < T > T ifNull ( final T reference , final T defaultValue ) { if ( reference == null ) { return defaultValue ; } return reference ; }
If our reference is null then return a default value instead .