protected void illegalMessageReceived(OFMessage m){
  String msg=getSwitchStateMessage(m,"Switch should never send this message in the current state");
  throw new SwitchStateException(msg);
}

protected void illegalMessageReceived ( OFMessage m ) { String msg = getSwitchStateMessage ( m , "Switch should never send this message in the current state" ) ; throw new SwitchStateException ( msg ) ; }
we have an ofmessage we didn ' t expect given the current state and we want to treat this as an error . we currently throw an exception that will terminate the connection however , we could be more forgiving
