question: private void validateNumCores ( ) { String numCoresStr = carbonProperties . getProperty ( CarbonCommonConstants . NUM_CORES , CarbonCommonConstants . NUM_CORES_DEFAULT_VAL ) ; try { int numCores = Integer . parseInt ( numCoresStr ) ; if ( numCores < CarbonCommonConstants . NUM_CORES_MIN_VAL || numCores > CarbonCommonConstants . NUM_CORES_MAX_VAL ) { LOGGER . info ( "The num Cores  value \"" + numCoresStr + "\" is invalid. Using the default value \"" + CarbonCommonConstants . NUM_CORES_DEFAULT_VAL ) ; carbonProperties . setProperty ( CarbonCommonConstants . NUM_CORES , CarbonCommonConstants . NUM_CORES_DEFAULT_VAL ) ; } } catch ( NumberFormatException e ) { LOGGER . info ( "The num Cores  value \"" + numCoresStr + "\" is invalid. Using the default value \"" + CarbonCommonConstants . NUM_CORES_DEFAULT_VAL ) ; carbonProperties . setProperty ( CarbonCommonConstants . NUM_CORES , CarbonCommonConstants . NUM_CORES_DEFAULT_VAL ) ; } }
target:  This method validates the number cores specified