Remove AccessDeniedException from getResources.