[TASK] A bit jacky patch to get resource for the current security context