[JBTM-1970] SPI changes for first/last resources