I doubt this is very thread safe. This method is likely called from a thread different from the SPNL scheduler.