code: public QueryMemento loadMemento() {
  		IDBAccess dbAccess = ((IIntDomainAccess)this.domainAccess).getInternalDomainAccess().getDBAccess();
  		String qLabel = ((IIntDomainAccess)this.domainAccess).getInternalDomainAccess().getDomainLabel()
  				.concat(QueryPersistor.Q_LABEL_POSTFIX);
  		
  		JcNode n = new JcNode("n");
  		IClause[] clauses = new IClause[] {
  				MATCH.node(n).label(qLabel).property(QueryPersistor.PROP_NAME).value(queryName),
  				RETURN.value(n)
  		};
  		JcQuery q = new JcQuery();
  		q.setClauses(clauses);
  		JcQueryResult result = dbAccess.execute(q);
  		if (result.hasErrors()) {
  			StringBuilder sb = new StringBuilder();
  			Util.appendErrorList(Util.collectErrors(result), sb);
  			throw new RuntimeException(sb.toString());
  		}
  		List<GrNode> lgn = result.resultOf(n);
  		if (lgn.size() > 0) {
  			GrNode gn = lgn.get(0);
  			String qJava = gn.getProperty(QueryPersistor.PROP_Q_JAVA).getValue().toString();
  			String qJSON = gn.getProperty(QueryPersistor.PROP_Q_JSON).getValue().toString();
  			QueryMemento qm = new QueryMemento(qJava, qJSON);
  			return qm;
  		}
  		return null;
  	}
docs: The memento contains a JSON representation of the query as well as a Java-DSL like string representation.
  @return