question: private static byte [ ] WindowsRegEnumValue1 ( int hKey , int valueIndex , int maxValueNameLength ) { byte [ ] result = WindowsRegEnumValue ( hKey , valueIndex , maxValueNameLength ) ; if ( result != null ) { return result ; } else { long sleepTime = INIT_SLEEP_TIME ; for ( int i = 0 ; i < MAX_ATTEMPTS ; i ++ ) { try { Thread . sleep ( sleepTime ) ; } catch ( InterruptedException e ) { return result ; } sleepTime *= 2 ; result = WindowsRegEnumValue ( hKey , valueIndex , maxValueNameLength ) ; if ( result != null ) { return result ; } } } return result ; }
target:  Retries RegEnumValueEx() MAX_ATTEMPTS times before giving up.