Lab report customiztion

How to login Looged In user name in lab report near signature.

I edited haitipatientreport.java file.

1). I tried by parameters.put but it print null in lab report.

UserSessionData usd = null;
if (request.getSession().getAttribute(IActionConstants.USER_SESSION_DATA) != null) {
usd = (UserSessionData) request.getSession().getAttribute(IActionConstants.USER_SESSION_DATA);

    } 
    reportParameters.put("loginName", usd != null ? usd.getElisUserName() : null);

2). I also tried to set LoginName and it also print null in lab report. It also printed null in lab rpeort . UserSessionData usd = null; if (request.getSession().getAttribute(IActionConstants.USER_SESSION_DATA) != null) { usd = (UserSessionData) request.getSession().getAttribute(IActionConstants.USER_SESSION_DATA); } data.setLoginName(usd.getElisUserName());`

I tried both ways but both printed null.