I have a client that is on AEM 6.2 and I am being asked to set timeouts on xpath searches. Looking at the documents for javax.jcr.query.QueryManager, I don't see any way to do this.
Is there a way to watch a query's execution time and kill the thread after X number of seconds?