in text-translators-agent/src/jetbrains/buildServer/agent/messages/regex/ParserCommand.java [223:235]
protected static ParserId getParserId(@NotNull final ServiceMessage message) {
final Map<String, String> attributes = message.getAttributes();
final String argument = message.getArgument();
final String file = attributes.get("file");
final String name = attributes.get("name");
final String resource = attributes.get("resource");
final String id = attributes.get("id");
if (isEmptyOrSpaces(argument) && isEmptyOrSpaces(file) && isEmptyOrSpaces(name) && isEmptyOrSpaces(resource) && isEmptyOrSpaces(id)) {
throw new IllegalArgumentException("Command requires either attribute 'name', 'file', 'id' or single argument. Actual message: " + message);
}
// TODO: improve
return new ParserId(name, resource, file);
}