// allow the simulator, running as reggie, to authenticate as reggie
// XXX Should the permission be obtained from the configuration???
Security.grant(lookupProxy.getClass(),
new Principal[]{reggie},
new Permission[] {
new AuthenticationPermission(
Collections.singleton(reggie),
Collections.singleton(reggie),
"connect")});
context.login();
} catch (LoginException e) {