Key (Map<String, String> attributes, Key baseOutputType) { String textAttributes = attributes.get(ATTR_KEY_TEXT_ATTRIBUTES); if (textAttributes == null) { return baseOutputType; } if (textAttributes.equals(ProcessOutputTypes.STDOUT.toString())) { return ProcessOutputTypes.STDOUT; } if (textAttributes.equals(ProcessOutputTypes.STDERR.toString())) { return ProcessOutputTypes.STDERR; } if (textAttributes.equals(ProcessOutputTypes.SYSTEM.toString())) { return ProcessOutputTypes.SYSTEM; } return ColoredOutputTypeRegistry.getInstance().getOutputType(textAttributes, baseOutputType); }