if (line == null) {
return;
}
//that check should be more complicated
Key outputType = ProcessOutputTypes.STDOUT;
if (line.contains("[emerg]")) {
outputType = ProcessOutputTypes.STDERR;
}
processHandler.notifyTextAvailable((new StringBuilder()).append(line).append("\n").toString(), outputType);