// This is so ugly!
// TODO: Remove this once we implemented proper types for input/ouput configuration.
private Map<String, Object> filterPasswordFields(final Output output) {
final Map<String, Object> data = output.asMap();
final MessageOutput messageOutput = messageOutputFactory.fromStreamOutput(output);
if (messageOutput == null) {
return data;
}
final ConfigurationRequest requestedConfiguration = messageOutput.getRequestedConfiguration();
if (data.containsKey("configuration")) {
final Map<String, Object> c = (Map<String, Object>) data.get("configuration");
for (Map.Entry<String, Object> entry : c.entrySet()) {