question: private int convertHexToInt ( String hexValue ) { int value ; try { value = Integer . parseInt ( hexValue , 16 ) ; } catch ( NumberFormatException e ) { logger . error ( "Failed to convert binary data to integer (" + hexValue + ")" , e ) ; return 0 ; } return value ; }
target:  convertHexToInt converts a given hexadecimal string to an integer value.