in text-translators-agent/src/jetbrains/buildServer/agent/messages/regex/ParserCommand.java [201:215]
public static ParserCommand fromSM(@NotNull final ServiceMessage message) {
final Map<String, String> attributes = message.getAttributes();
final String command = message.getMessageName();
assert command.startsWith(PREFIX);
if (COMMAND_ENABLE.equals(command)) {
return new Enable(message);
} else if (COMMAND_DISABLE.equals(command)) {
return new Disable(message);
} else if (COMMAND_RESET.equals(command)) {
return new Reset(message);
} else {
throw new IllegalArgumentException("Unsupported command type " + command);
}
}