@GET
 @Path("broker/{routing-id}")
 public Routing getRouting(@PathParam("routing-id") String name) {
   for (Routing r : broker.getConfiguration().getRouting()) {
     if (r.getName().equals(name)) {
       return r;
     }
   }
   return null;
 }
  @PUT
  @Path("broker/{routing-id}")
  public void addRouting(@PathParam("routing-id") String name, Routing routing) {
    routing.setName(name); // Ensure that name is the same as the one specified on the URL
    broker.addRouting(routing);

    // Broadcast new stream list
    OutboundEvent.Builder eventBuilder = new OutboundEvent.Builder();
    OutboundEvent event =
        eventBuilder
            .name("broker")
            .mediaType(MediaType.APPLICATION_JSON_TYPE)
            .data(Configuration.class, broker.getConfiguration())
            .build();
    broadcaster.broadcast(event);
  }