try
{
// This is a substatement; for now, we do not set any timeout
// for it. We might change this behaviour later, by linking
// timeout to its parent statement's timeout settings.
ResultSet rs = ps.executeSubStatement
(activation, spsActivation, false, 0L);
if (isWhen)
{
// This is a WHEN clause. Expect a single BOOLEAN value