this is wrong, it should be coded against the PHPCR interfaces: PHPCR\Query\QueryResultInterface