question: private boolean needsUpdate ( Long bundleVersion , String beanVersion ) { if ( beanVersion . contains ( "OAD" ) ) { Log . i ( TAG , "Bundle version: " + bundleVersion ) ; Log . i ( TAG , "Bean version: " + beanVersion ) ; return true ; } else { try { long parsedVersion = Long . parseLong ( beanVersion . split ( " " ) [ 0 ] ) ; Log . i ( TAG , "Bundle version: " + bundleVersion ) ; Log . i ( TAG , "Bean version: " + parsedVersion ) ; if ( bundleVersion > parsedVersion ) { return true ; } else { Log . i ( TAG , "No update required!" ) ; } } catch ( NumberFormatException e ) { Log . e ( TAG , "Couldn't parse Bean Version: " + beanVersion ) ; fail ( BeanError . UNPARSABLE_FW_VERSION ) ; } } return false ; }
target:  Helper function to determine whether a Bean needs a FW update given a specific Bundle version