private void write(String indent, BendPoint bendpoint, Element bendpointElement) {
   addAttribute(
       bendpointElement, "w1", String.valueOf(bendpoint.getFirstRelativeDimension().width));
   addAttribute(
       bendpointElement, "h1", String.valueOf(bendpoint.getFirstRelativeDimension().height));
   addAttribute(
       bendpointElement, "w2", String.valueOf(bendpoint.getSecondRelativeDimension().width));
   addAttribute(
       bendpointElement, "h2", String.valueOf(bendpoint.getSecondRelativeDimension().height));
 }
 protected void processBendpoint(BendPoint bendPoint, Element bendpointInfo) {
   int w1 = Integer.valueOf(getAttribute(bendpointInfo, "w1")).intValue();
   int h1 = Integer.valueOf(getAttribute(bendpointInfo, "h1")).intValue();
   int w2 = Integer.valueOf(getAttribute(bendpointInfo, "w2")).intValue();
   int h2 = Integer.valueOf(getAttribute(bendpointInfo, "h2")).intValue();
   Dimension d1 = new Dimension(w1, h1);
   Dimension d2 = new Dimension(w2, h2);
   bendPoint.setRelativeDimensions(d1, d2);
 }