code: protected <T> DomainObjectMatch<T> createMatchForInternal(List<T> domainObjects,
  			Class<T> domainObjectType) {
  		DomainObjectMatch<T> ret = APIAccess.createDomainObjectMatch(domainObjectType,
  				this.queryExecutor.getDomainObjectMatches().size(),
  				this.queryExecutor.getMappingInfo());
  		this.queryExecutor.getDomainObjectMatches().add(ret);
  		FromPreviousQueryExpression pqe = new FromPreviousQueryExpression(
  				ret, domainObjects);
  		this.queryExecutor.addAstObject(pqe);
  		return ret;
  	}
docs: Create a match for a list of domain objects which were retrieved by another query
  @param domainObjects a list of domain objects which were retrieved by another query
  @param domainObjectType the type of those domain objects
  @return a DomainObjectMatch