- String userName = AlarmConst.ADMIN;\r
- String sessionName = request.getHeader("username");\r
- if (sessionName != null) {\r
- userName = sessionName.toLowerCase();\r
- }\r
- return userName;\r
+ return request.getHeader("username") == null ?\r
+ AlarmConst.ADMIN : request.getHeader("username");\r