@Override
  public void write(final Rectangle value, final XmlWriter writer){
    writer.addAttribute("x",value.x);
    writer.addAttribute("y",value.y);
    writer.addAttribute("width",value.width);
    writer.addAttribute("height",value.height);
  }
@Override
  public void write(final Rectangle value, final XmlWriter writer)