@Nullable
  @Override
  public Element getState() {
    Element result = new Element("state");
    XmlSerializer.serializeObjectInto(this, result);
    return result;
  }
@Nullable
  @Override
  public Element getState()