package org.isisaddons.wicket.svg.fixture.dom;

public class Color {
    
    final private String color;
    
    final private String label;
    
    public Color(String color, String label) {
        this.color = color;
        this.label = label;
    }

    public String getColor() {
        return color;
    }
    
    public String getLabel() {
        return label;
    }
    
}

@@ -374,15 +374,596 @@
 ;%0A    %7D%0A
+%0A
     
+@Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) %7B%0A            return true;%0A        %7D%0A        if (o == null %7C%7C getClass() != o.getClass()) %7B%0A            return false;%0A        %7D%0A%0A        Color color1 = (Color) o;%0A%0A        if (!color.equals(color1.color)) %7B%0A            return false;%0A        %7D%0A        if (!label.equals(color1.label)) %7B%0A            return false;%0A        %7D%0A%0A        return true;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int result = color.hashCode();%0A        result = 31 * result + label.hashCode();%0A        return result;%0A    %7D
 %0A%7D%0A

Add equals/hashCode to Color class to have just one entry in the Map for Legend