moved reflection (setAccessible) in doPrivilege block