private static boolean isOptionCodeMatch(final Object option, final Object data) {
		// If the option is an instance of Option, check if the data value is the "CODE" value on the option
		if (option instanceof Option) {
			String optionCode = ((Option) option).getCode();
			String matchAsString = String.valueOf(data);
			boolean equal = Util.equals(optionCode, matchAsString);
			return equal;
		}
		return false;
	}
private static boolean isOptionCodeMatch ( final Object option , final Object data ) { if ( option instanceof Option ) { String optionCode = ( ( Option ) option ) . getCode ( ) ; String matchAsString = String . valueOf ( data ) ; boolean equal = Util . equals ( optionCode , matchAsString ) ; return equal ; } return false ; }
If the option is an instance of {@link Option}, check if the data value matches the Code value of the option.

@param option the option to test for a match
@param data the test data value
@return true if the option and code are a match