@Override
 public void write(DOMOutput out) throws IOException {
   super.write(out);
   out.openElement("locator");
   out.writeObject(locator);
   out.closeElement();
 }
 @Override
 public void read(DOMInput in) throws IOException {
   super.read(in);
   in.openElement("locator");
   this.locator = (Locator) in.readObject(0);
   in.closeElement();
 }