boolean containKey(String handler){
  if ((handler == null) || (handler.length() == 0)) {
    return false;
  }
  if (relayStateMap.containsKey(handler)) {
    return true;
  }
 else {
    return false;
  }
}

boolean containKey ( String handler ) { if ( ( handler == null ) || ( handler . length ( ) == 0 ) ) { return false ; } if ( relayStateMap . containsKey ( handler ) ) { return true ; } else { return false ; } }
returns true if handler is one of the keys in the relaystate map .
