Added resource parameter to the locker refresh method