i need (for testing purpose) to set a bean in a session with some thing like modify header plugin;
I have to prevent this statments to get null:
return (UserBean) request.getSession().getAttribute("UserBean");
where UserBeen is a java class that contain
private String cognome;
private String nome;
and setter and getter.