* null if there was only privileged system code.
*/
private static AccessControlContext getStackAccessControlContext() {
AccessControlContext context = null;
CallerID callerID = null;
PrivilegedElement pi = privileged_stack_top;
if (pi != null) {
context = pi.context;
callerID = pi.callerID;
}