question: private boolean isValidState ( String key ) { if ( key == null ) { return false ; } if ( key . equals ( rbean . getString ( "SignalHeadStateDark" ) ) || key . equals ( rbean . getString ( "SignalHeadStateHeld" ) ) ) { if ( log . isDebugEnabled ( ) ) { log . debug ( key + " is a valid state. " ) ; } return true ; } for ( int i = 0 ; i < _validKey . length ; i ++ ) { if ( key . equals ( _validKey [ i ] ) ) { if ( log . isDebugEnabled ( ) ) { log . debug ( key + " is a valid state. " ) ; } return true ; } } if ( log . isDebugEnabled ( ) ) { log . debug ( key + " is NOT a valid state. " ) ; } return false ; }
target:  Check that device supports the state valid state names returned by the bean are localized