*/
public User getUserFromSession()
{
try
{
SessionBindingEventProxy proxy = (SessionBindingEventProxy) getSession().getAttribute( USER_SESSION_KEY );
// If the user isn't yet logged in, return null so that
// the session validator can take the correct action
// (i.e. make a temporary anonymous user).
return ( proxy == null ? null : (User) proxy.getListener() );
}
catch ( ClassCastException e )
{
String message = "User object did not implement User interface. " +
"if you are sure the interface is implemented, the user " +