}
try {
MessageType type = MessageType.valueOf(StringUtils.upperCase(messageType));
if (!communicator.isOff(config)) {
if (!communicator.isStandby(config)) {
SimpleResult result = communicator.sendMessage(config, message, type, timeout);
if (!result.isValid()) {
logger.warn("Can't send message to OpenWebIf receiver with name '{}': {}", config.getName(),
result.getStateText());
} else {
return true;
}
} else {
logger.debug("OpenWebIf receiver with name '{}' is in standby", config.getName());