roleName = securityManager.getDefaultRoleName();
}
synchronized (agentBodyMap){
AgentBody context = agentBodyMap.get(cred.getGlobalId());
if (context != null){
throw new SecurityException("Duplicate identity.");
}
ctxIds++;
AgentId userId = new AgentId(cred.getId(), cred.getGlobalId(), ctxIds, roleName,id);
boolean joinOK = true;
String failureMsg = "no msg";