if (validationContext.getViewResourceDelegate() == null)
{
throw new ExprValidationException("Prior function cannot be used in this context");
}
// Request a callback that provides the required access
if (!validationContext.getViewResourceDelegate().requestCapability(streamNumber, new ViewCapPriorEventAccess(constantIndexNumber), this))
{
throw new ExprValidationException("Prior function requires the prior event view resource");
}
}