Accessing value of a session bean on a JSF page



Hi,

I was hoping someone could help me optimize some code on my JSF page,
since I figure that's the point of JSF. Here's what I haev

SSOSessionBean ssoSessionBean = null;
ssoSessionBean = (SSOSessionBean)
session.getAttribute(IMConstants.SSOSession);
String userName = ssoSessionBean.getUserName();
out.println(userName);

Is is possible to condense this down to a single line of code? What
changes, if any, would I have to make to my faces-config.xml file?

Thanks, - Dave
.