code: public static AtomService documentToService(final Document document) throws ProponoException {
          final AtomService service = new AtomService();
          final Element root = document.getRootElement();
          final List<Element> spaces = root.getChildren("workspace", ATOM_PROTOCOL);
          for (final Element e : spaces) {
              service.addWorkspace(Workspace.elementToWorkspace(e));
          }
          return service;
      }
docs: Deserialize an Atom service XML document into an object