protected CallContext newCallContext(Map< String, Object > values, String loginBeanName, Class loginBeanClass) {
CallContextFactory factory = new DefaultCallContextFactory();
factory.setContextConfiguration(values);
CallContext cc = factory.newContext();
LoginViewCtrl s = (LoginViewCtrl)getManagedBean(loginBeanName, loginBeanClass);
s.setCallContext(cc);
return cc;
}