code: public GDomainQuery replayGenericQuery(RecordedQuery recordedQuery, IGenericDomainAccess domainAccess) {
  		Boolean br_old = null;
  		GDomainQuery query;
  		try {
  			if (!Settings.TEST_MODE) {
  				br_old = QueryRecorder.blockRecording.get();
  				if (this.createNew)
  					QueryRecorder.blockRecording.set(Boolean.FALSE);
  				else
  					QueryRecorder.blockRecording.set(Boolean.TRUE);
  			}
  			this.generic = true;
  			this.replayedQueryContext = new ReplayedQueryContext(recordedQuery);
  			query = ((IIntDomainAccess)domainAccess).getInternalDomainAccess().createRecordedGenQuery(this.replayedQueryContext,
  					this.createNew); // do record
  			this.id2ObjectMap.put(QueryRecorder.QUERY_ID, query);
  			
  			for (Statement stmt : recordedQuery.getStatements()) {
  				replayStatement(stmt);
  			}
  		} finally {
  			if (!Settings.TEST_MODE)
  				QueryRecorder.blockRecording.set(br_old);
  		}
  		
  		return query;
  	}
docs: Create a generic domain query from a recorded query.
  @param recordedQuery
  @param domainAccess
  @return