} catch (final LockException e) {
throw new XPathException(this, "Failed to acquire lock on the context document set");
} finally {
// release all locks
if (!context.inProtectedMode())
{ds.unlock(false);}
}
// result.updateNoSort();
if (context.getProfiler().isEnabled())
{context.getProfiler().end(this, "", result);}