import org.graylog2.plugin.outputs.MessageOutput;
public class PluginRegistry {
public static void setActiveTransports(Core server, List<Transport> transports) {
Set<Map<String, Object>> r = Sets.newHashSet();
for(Transport transport : transports) {
<BUG>Map<String, Object> entry = Maps.newHashMap();
entry.put("typeclass", transport.getClass().getCanonicalName());

entry.put("name", transport.getName());
r.add(entry);
}</BUG>
server.getMongoBridge().writePluginInformation(r, "transports");

import org.graylog2.plugin.outputs.MessageOutput;
public class PluginRegistry {
public static void setActiveTransports(Core server, List<Transport> transports) {
Set<Map<String, Object>> r = Sets.newHashSet();
for(Transport transport : transports) {
r.add(buildStandardInformation(
transport.getClass().getCanonicalName(),
transport.getName(),
null
));
