protected Geometry createBounds(IIssue issue) {
    AttributeDescriptor att = mapper.getSchema().getDescriptor(mapper.getBounds());
    if (MultiPolygon.class.isAssignableFrom(att.getType().getBinding()))
      return toMultiPolygon(issue.getBounds());

    return toPolygon(issue.getBounds());
  }
 protected String createViewMemento(IIssue issue) {
   StringWriter out = new StringWriter();
   XMLMemento memento = XMLMemento.createWriteRoot("root"); // $NON-NLS-1$
   issue.getViewMemento(memento);
   try {
     memento.save(out);
   } catch (IOException e) {
     IssuesActivator.log("", e); // $NON-NLS-1$
   }
   return out.toString();
 }